Interface ExemplarData

All Known Subinterfaces:
DoubleExemplarData, LongExemplarData

@Immutable public interface ExemplarData
An example measurement.

Provides details about a measurement that are normally aggregated away, including the measurement value, the measurement timestamp, and additional attributes.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the timestamp in nanos when measurement was collected.
    io.opentelemetry.api.common.Attributes
    Returns the attributes that were recorded alongside the original measurement but filtered out by the aggregator.
    io.opentelemetry.api.trace.SpanContext
    Returns the SpanContext associated with this exemplar.
  • Method Details

    • getFilteredAttributes

      io.opentelemetry.api.common.Attributes getFilteredAttributes()
      Returns the attributes that were recorded alongside the original measurement but filtered out by the aggregator.
    • getEpochNanos

      long getEpochNanos()
      Returns the timestamp in nanos when measurement was collected.
    • getSpanContext

      io.opentelemetry.api.trace.SpanContext getSpanContext()
      Returns the SpanContext associated with this exemplar. If the exemplar was not recorded inside a sampled trace, the SpanContext will be invalid.