Class ImmutableExceptionEventData

java.lang.Object
io.opentelemetry.sdk.trace.data.ImmutableExceptionEventData
All Implemented Interfaces:
EventData, ExceptionEventData
Direct Known Subclasses:
AutoValue_ImmutableExceptionEventData

@Immutable abstract class ImmutableExceptionEventData extends Object implements ExceptionEventData
An effectively immutable implementation of ExceptionEventData.
  • Field Details

  • Constructor Details

    • ImmutableExceptionEventData

      ImmutableExceptionEventData()
  • Method Details

    • getName

      public final String getName()
      Description copied from interface: EventData
      Return the name of the EventData.
      Specified by:
      getName in interface EventData
      Returns:
      the name of the EventData.
    • create

      static ExceptionEventData create(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount)
      Returns a new immutable Event.
      Parameters:
      epochNanos - epoch timestamp in nanos of the Event.
      exception - the exception of the Event.
      attributes - the additional Attributes of the Event.
      totalAttributeCount - the total number of attributes for this Event.
      Returns:
      a new immutable Event<T>