Class ImmutableExceptionEventData
java.lang.Object
io.opentelemetry.sdk.trace.data.ImmutableExceptionEventData
- All Implemented Interfaces:
EventData, ExceptionEventData
- Direct Known Subclasses:
AutoValue_ImmutableExceptionEventData
An effectively immutable implementation of
ExceptionEventData.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ExceptionEventDatacreate(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableEvent.final StringgetName()Return the name of theEventData.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EventData
getAttributes, getDroppedAttributesCount, getEpochNanos, getTotalAttributeCountMethods inherited from interface ExceptionEventData
getException
-
Field Details
-
EXCEPTION_EVENT_NAME
- See Also:
-
-
Constructor Details
-
ImmutableExceptionEventData
ImmutableExceptionEventData()
-
-
Method Details
-
getName
-
create
static ExceptionEventData create(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableEvent.- Parameters:
epochNanos- epoch timestamp in nanos of theEvent.exception- theexceptionof theEvent.attributes- the additionalAttributesof theEvent.totalAttributeCount- the total number of attributes for this Event.- Returns:
- a new immutable
Event<T>
-