# Packages

No description provided by the author

# Functions

AddMiddleware adds the middleware to the http client options.
FromStatus returns the error source from backend status.
Middleware applies the duration to the context.
NewClient wraps the existing http client constructor and adds the duration middleware.
No description provided by the author
NewMetrics creates a new Metrics instance.
NewMetricsWrapper creates a new MetricsWrapper instance.
RoundTripper captures the duration of the request in the context.
No description provided by the author

# Constants

DataSourceSLOMiddlewareName is the middleware name used by Middleware.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

Duration is stored in the Context and used to collect metrics.
DurationKey is a key for storing the duration in the context.
Metrics is an abstraction for collecting metrics.
MetricsWrapper is a wrapper for a plugin that collects metrics.

# Interfaces

No description provided by the author

# Type aliases

Endpoint is the endpoint of the request (health, query, resource).
Source is the source of the error (downstream, plugin).
Status is the status of the request.