Defined in File exemplar_data.h
A sample input measurement.
Exemplars also hold information about the environment when the measurement was recorded, for example the span and trace ID of the active span when the exemplar was recorded.
inline MetricAttributes GetFilteredAttributes()
The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. Only key/value pairs that were filtered out by the aggregator should be included
inline opentelemetry::common::SystemTimestamp GetEpochNanos()
Returns the timestamp in nanos when measurement was collected.
inline const trace::SpanContext &GetSpanContext() const noexcept
Returns the SpanContext associated with this exemplar. If the exemplar was not recorded inside a sampled trace, the Context will be invalid.
- inline MetricAttributes GetFilteredAttributes()