Documentation ¶
Overview ¶
Package httpmiddleware is adapted from https://github.com/bwplotka/correlator/tree/main/examples/observability/ping/pkg/httpinstrumentation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware interface { // WrapHandler wraps the given HTTP handler for instrumentation. WrapHandler(handlerName string, handler http.Handler) http.HandlerFunc }
func New ¶
func New(registry prometheus.Registerer, buckets []float64) Middleware
New returns a Middleware interface.
Click to show internal directories.
Click to hide internal directories.