package
0.37.2
Repository: https://github.com/thanos-io/thanos.git
Documentation: pkg.go.dev

# Functions

InstrumentedRoundTripper instruments the given roundtripper with metrics that are registered in the provided ClientMetrics.
NewClientMetrics creates a new instance of ClientMetrics.
NewInstrumentationMiddleware provides default InstrumentationMiddleware.
NewNopInstrumentationMiddleware provides a InstrumentationMiddleware which does nothing.
NewTenantInstrumentationMiddleware provides the same instrumentation as defaultInstrumentationMiddleware, but with a tenant label fetched from the given tenantHeaderName header.

# Structs

ClientMetrics holds a collection of metrics that can be used to instrument a http client.

# Interfaces

InstrumentationMiddleware holds necessary metrics to instrument an http.Server and provides necessary behaviors.