# README

Metric SDK Exemplars

PkgGoDev

# Functions

AlwaysOffFilter is a [Filter] that never offers measurements.
AlwaysOnFilter is a [Filter] that always offers measurements.
FixedSizeReservoirProvider returns a provider of [FixedSizeReservoir].
HistogramReservoirProvider is a provider of [HistogramReservoir].
NewFixedSizeReservoir returns a [FixedSizeReservoir] that samples at most k exemplars.
NewHistogramReservoir returns a [HistogramReservoir] that samples the last measurement that falls within a histogram bucket.
NewValue returns a new [Value] for the provided value.
TraceBasedFilter is a [Filter] that will only offer measurements if the passed context associated with the measurement contains a sampled [go.opentelemetry.io/otel/trace.SpanContext].

# Constants

Float64ValueType represents a Value with float64 data.
Int64ValueType represents a Value with int64 data.
UnknownValueType should not be used.

# Structs

Exemplar is a measurement sampled from a timeseries providing a typical example.
FixedSizeReservoir is a [Reservoir] that samples at most k exemplars.
HistogramReservoir is a [Reservoir] that samples the last measurement that falls within a histogram bucket.
Value is the value of data held by an exemplar.

# Interfaces

Reservoir holds the sampled exemplar of measurements made.

# Type aliases

Filter determines if a measurement should be offered.
ReservoirProvider creates new [Reservoir]s.
ValueType identifies the type of value used in exemplar data.