# Functions

Handler returns an http.Handler for the prometheus.DefaultGatherer, using default HandlerOpts, i.e.
HandlerFor returns an uninstrumented http.Handler for the provided Gatherer.
HandlerForTransactional is like HandlerFor, but it uses transactional gather, which can safely change in-place returned *dto.MetricFamily before call to `Gather` and after call to `done` of that `Gather`.
InstrumentHandlerCounter is a middleware that wraps the provided http.Handler to observe the request result with the provided CounterVec.
InstrumentHandlerDuration is a middleware that wraps the provided http.Handler to observe the request duration with the provided ObserverVec.
InstrumentHandlerInFlight is a middleware that wraps the provided http.Handler.
InstrumentHandlerRequestSize is a middleware that wraps the provided http.Handler to observe the request size with the provided ObserverVec.
InstrumentHandlerResponseSize is a middleware that wraps the provided http.Handler to observe the response size with the provided ObserverVec.
InstrumentHandlerTimeToWriteHeader is a middleware that wraps the provided http.Handler to observe with the provided ObserverVec the request duration until the response headers are written.
InstrumentMetricHandler is usually used with an http.Handler returned by the HandlerFor function.
InstrumentRoundTripperCounter is a middleware that wraps the provided http.RoundTripper to observe the request result with the provided CounterVec.
InstrumentRoundTripperDuration is a middleware that wraps the provided http.RoundTripper to observe the request duration with the provided ObserverVec.
InstrumentRoundTripperInFlight is a middleware that wraps the provided http.RoundTripper.
InstrumentRoundTripperTrace is a middleware that wraps the provided RoundTripper and reports times to hook functions provided in the InstrumentTrace struct.
WithExtraMethods adds additional HTTP methods to the list of allowed methods.

# Constants

Ignore errors and try to serve as many metrics as possible.
Serve an HTTP status code 500 upon the first error encountered.
Panic upon the first error encountered (useful for "crash only" apps).

# Structs

HandlerOpts specifies options how to serve metrics via an http.Handler.
InstrumentTrace is used to offer flexibility in instrumenting the available httptrace.ClientTrace hook functions.

# Interfaces

Logger is the minimal interface HandlerOpts needs for logging.

# Type aliases

HandlerErrorHandling defines how a Handler serving metrics will handle errors.
Option are used to configure a middleware or round tripper..
The RoundTripperFunc type is an adapter to allow the use of ordinary functions as RoundTrippers.