Package io.opentelemetry.sdk.trace.data
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 ExceptionEventData
create
(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableEvent
.final String
getName()
Return the name of theEventData
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.opentelemetry.sdk.trace.data.EventData
getAttributes, getDroppedAttributesCount, getEpochNanos, getTotalAttributeCount
Methods inherited from interface io.opentelemetry.sdk.trace.data.ExceptionEventData
getException
-
Field Details
-
EXCEPTION_EVENT_NAME
- See Also:
-
-
Constructor Details
-
ImmutableExceptionEventData
ImmutableExceptionEventData()
-
-
Method Details
-
getName
Description copied from interface:EventData
Return the name of theEventData
. -
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
- theexception
of theEvent
.attributes
- the additionalAttributes
of theEvent
.totalAttributeCount
- the total number of attributes for this Event.- Returns:
- a new immutable
Event<T>
-