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.
Definition at line 26 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
Public Member Functions | |
| MetricAttributes | GetFilteredAttributes () |
| The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. More... | |
| opentelemetry::common::SystemTimestamp | GetEpochNanos () |
| Returns the timestamp in nanos when measurement was collected. More... | |
| const opentelemetry::trace::SpanContext & | GetSpanContext () const noexcept |
| Returns the SpanContext associated with this exemplar. More... | |
| MetricAttributes | GetFilteredAttributes () |
| The set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement. More... | |
| opentelemetry::common::SystemTimestamp | GetEpochNanos () |
| Returns the timestamp in nanos when measurement was collected. More... | |
| const opentelemetry::trace::SpanContext & | GetSpanContext () const noexcept |
| Returns the SpanContext associated with this exemplar. More... | |
Static Public Member Functions | |
| static ExemplarData | Create (std::shared_ptr< opentelemetry::trace::SpanContext > context, const opentelemetry::common::SystemTimestamp ×tamp, const PointDataAttributes &point_data_attr) |
| static PointType | CreateSumPointData (ValueType value) |
| static PointType | CreateLastValuePointData (ValueType value) |
| static PointType | CreateDropPointData () |
| static ExemplarData | Create (std::shared_ptr< opentelemetry::trace::SpanContext > context, const opentelemetry::common::SystemTimestamp ×tamp, const PointDataAttributes &point_data_attr) |
| static PointType | CreateSumPointData (ValueType value) |
| static PointType | CreateLastValuePointData (ValueType value) |
| static PointType | CreateDropPointData () |
|
inlinestatic |
Definition at line 29 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inlinestatic |
Definition at line 29 of file 9.2/includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inlinestatic |
Definition at line 68 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inlinestatic |
Definition at line 68 of file 9.2/includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inlinestatic |
Definition at line 59 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
References sdk::metrics::LastValuePointData::value_.
|
inlinestatic |
Definition at line 59 of file 9.2/includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
References sdk::metrics::LastValuePointData::value_.
Definition at line 52 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
References sdk::metrics::SumPointData::value_.
Definition at line 52 of file 9.2/includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
References sdk::metrics::SumPointData::value_.
|
inline |
Returns the timestamp in nanos when measurement was collected.
Definition at line 44 of file 9.2/includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inline |
Returns the timestamp in nanos when measurement was collected.
Definition at line 44 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inline |
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
Definition at line 41 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inline |
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
Definition at line 41 of file 9.2/includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inlinenoexcept |
Returns the SpanContext associated with this exemplar.
If the exemplar was not recorded inside a sampled trace, the Context will be invalid.
Definition at line 50 of file includes/opentelemetry/sdk/metrics/data/exemplar_data.h.
|
inlinenoexcept |
Returns the SpanContext associated with this exemplar.
If the exemplar was not recorded inside a sampled trace, the Context will be invalid.
Definition at line 50 of file 9.2/includes/opentelemetry/sdk/metrics/data/exemplar_data.h.