# Functions
ContextWithMetrics returns a new context based on the supplied one that contains the provided metrics collection configurations.
WithBearerToken inserts the bearer token into the returned context which is based on the provided context.
# Variables
No description provided by the author
# Structs
AuthenticatingRoundTripper is a wrapper around an HTTP round tripper that add a bearer token from the context (if any) before performing the request using the wrapped round tripper.
ExaminingRoundTripper is an HTTP request round tripper that calls the Examiner after the request is made so that it can examine the request and response or turn it into an error.
HttpMetricCollectingRoundTripper is a wrapper around http.RoundTripper interface that, given an HttpMetricCollectionConfig, collects the metrics for each HTTP request processed.
HttpMetricCollectionConfig specifies what metric should be collected.
# Interfaces
HttpCounterMetricPicker is an interface used by the HttpMetricCollectingRoundTripper to pick the counter metrics to collect based on the request and response.
HttpGaugeMetricPicker is an interface used by the HttpMetricCollectingRoundTripper to pick the gauge metrics to collect based on the request and response.
HttpHistogramOrSummaryMetricPicker is an interface used by the HttpMetricCollectingRoundTripper to pick the histogram or summary metrics to collect based on the request and response.
RoundTripExaminer is interface enabling the implementors to examine the request and response during the roundtrip and potentially somehow modify them or turn them into error.
# Type aliases
HttpCounterMetricPickerFunc is a functional implementation of HttpCounterMetricPicker.
HttpGaugeMetricPickerFunc is a functional implementation of HttpGaugeMetricPicker.
HttpHistogramOrSummaryMetricPickerFunc is a functional implementation of HttpHistogramOrSummaryMetricPicker.
RoundTripExaminerFunc is a conversion of a function into RoundTripExaminer.