Class ImmutableEventData

java.lang.Object
io.opentelemetry.sdk.trace.data.ImmutableEventData
All Implemented Interfaces:
EventData
Direct Known Subclasses:
AutoValue_ImmutableEventData

@Immutable abstract class ImmutableEventData extends Object implements EventData
An immutable implementation of the EventData.
  • Constructor Details

    • ImmutableEventData

      ImmutableEventData()
  • Method Details

    • create

      static EventData create(long epochNanos, String name, Attributes attributes)
      Returns a new immutable Event.
      Parameters:
      epochNanos - epoch timestamp in nanos of the Event.
      name - the name of the Event.
      attributes - the attributes of the Event.
      Returns:
      a new immutable Event<T>
    • create

      static EventData create(long epochNanos, String name, Attributes attributes, int totalAttributeCount)
      Returns a new immutable Event.
      Parameters:
      epochNanos - epoch timestamp in nanos of the Event.
      name - the name of the Event.
      attributes - the attributes of the Event.
      totalAttributeCount - the total number of attributes recorded for the Event.
      Returns:
      a new immutable Event<T>