Class ImmutableLongExemplarData

java.lang.Object
io.opentelemetry.sdk.metrics.internal.data.ImmutableLongExemplarData
All Implemented Interfaces:
ExemplarData, LongExemplarData
Direct Known Subclasses:
AutoValue_ImmutableLongExemplarData

@Immutable public abstract class ImmutableLongExemplarData extends Object implements LongExemplarData
An ExemplarData with long measurements.

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.

  • Constructor Details

    • ImmutableLongExemplarData

      ImmutableLongExemplarData()
  • Method Details

    • create

      public static LongExemplarData create(Attributes filteredAttributes, long recordTimeNanos, SpanContext spanContext, long value)
      Construct a new exemplar.
      Parameters:
      filteredAttributes - The set of Attributes not already associated with the PointData.
      recordTimeNanos - The time when the sample qas recorded in nanoseconds.
      spanContext - The associated span context.
      value - The value recorded.