Documentation ¶
Index ¶
- func MonitorAfterRequest(req *http.Request, requestInfo *request.RequestInfo, ...)
- func SetExtraRequestInfo(ctx context.Context, upstream, instance string) error
- func WithExtraReqeustInfo(parent context.Context, info *ExtraRequestInfo) context.Context
- func WithExtraRequestInfo(handler http.Handler) http.Handler
- func WithRequestInfo(handler http.Handler, resolver request.RequestInfoResolver) http.Handler
- func WithRequestMetric(handler http.Handler) http.Handler
- type ExtraRequestInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonitorAfterRequest ¶
func MonitorAfterRequest( req *http.Request, requestInfo *request.RequestInfo, extraRequestInfo *ExtraRequestInfo, rw *apiservermetrics.ResponseWriterDelegator, elapsed time.Duration, )
func SetExtraRequestInfo ¶
func WithExtraReqeustInfo ¶
func WithExtraReqeustInfo(parent context.Context, info *ExtraRequestInfo) context.Context
WithExtraReqeustInfo returns a copy of parent in which the ExtraRequestInfo value is set
func WithExtraRequestInfo ¶
WithExtraRequestInfo attaches extra request info to the context.
func WithRequestInfo ¶
WithRequestInfo attaches a RequestInfo to the context.
Types ¶
type ExtraRequestInfo ¶
func ExtraReqeustInfoFrom ¶
func ExtraReqeustInfoFrom(ctx context.Context) (*ExtraRequestInfo, bool)
ExtraReqeustInfoFrom returns the value of the ExtraRequestInfo key on the ctx
Click to show internal directories.
Click to hide internal directories.