apiserverk8s.io/apiserver/pkg/endpoints/filterlatency Index | Files

package filterlatency

import "k8s.io/apiserver/pkg/endpoints/filterlatency"

Index

Functions

func TrackCompleted

func TrackCompleted(handler http.Handler) http.Handler

TrackCompleted measures the timestamp the given handler has completed execution and then it updates the corresponding metric with the filter latency duration.

func TrackStarted

func TrackStarted(handler http.Handler, tp trace.TracerProvider, name string) http.Handler

TrackStarted measures the timestamp the given handler has started execution by attaching a handler to the chain.

Source Files

filterlatency.go

Version
v0.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
1 hour ago

Tools for package owners.