# Functions
New creates a new metrics instance with default collectors.
WithCollector register a new generic collector.
WithHandlerOpts sets the options how to serve metrics via an http.Handler.
WithInboundRequestDurationBuckets set the buckets size in seconds for the inbound requests duration.
WithInboundRequestSizeBuckets set the buckets size in bytes for the inbound requests.
WithInboundResponseSizeBuckets set the buckets size in bytes for the inbound response.
WithOutboundRequestDurationBuckets set the buckets size in seconds for the outbound requests duration.
# Constants
NameAPIRequests is the name of the collector that counts the total inbound http requests.
NameErrorCode is the name of the collector that counts the number of errors by task, operation and error code.
NameErrorLevel is the name of the collector that counts the number of errors for each log severity level.
NameInFlightRequests is the name of the collector that counts in-flight inbound http requests.
NameOutboundInFlightRequests is the name of the collector that counts in-flight outbound http requests.
NameOutboundRequests is the name of the collector that measures the number of outbound requests.
NameOutboundRequestsDuration is the name of the collector that measures the outbound requests duration in seconds.
NameRequestDuration is the name of the collector that measures the inbound http request duration in seconds.
NameRequestSize is the name of the collector that measures the http request size in bytes.
NameResponseSize is the name of the collector that measures the http response size in bytes.
# Type aliases
Option is the interface that allows to set client options.