Interface ExemplarData
- All Known Subinterfaces:
DoubleExemplarData,LongExemplarData
@Immutable
public interface ExemplarData
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.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the timestamp in nanos when measurement was collected.io.opentelemetry.api.common.AttributesThe set of key/value pairs that were filtered out by the aggregator, but recorded alongside the original measurement.io.opentelemetry.api.trace.SpanContextReturns theSpanContextassociated with this exemplar.
-
Method Details
-
getFilteredAttributes
io.opentelemetry.api.common.Attributes 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. -
getEpochNanos
long getEpochNanos()Returns the timestamp in nanos when measurement was collected. -
getSpanContext
io.opentelemetry.api.trace.SpanContext getSpanContext()Returns theSpanContextassociated with this exemplar. If the exemplar was not recorded inside a sampled trace, theSpanContextwill be invalid.
-