Package io.opentelemetry.sdk.trace.data
Interface ExceptionEventData
- All Superinterfaces:
EventData
- All Known Implementing Classes:
AutoValue_ImmutableExceptionEventData
,ImmutableExceptionEventData
Data representation of an event for a recorded exception.
- Since:
- 1.44.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionEventData
create
(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableExceptionEventData
.Return theexception
of theExceptionEventData
.Methods inherited from interface io.opentelemetry.sdk.trace.data.EventData
getAttributes, getDroppedAttributesCount, getEpochNanos, getName, getTotalAttributeCount
-
Method Details
-
create
static ExceptionEventData create(long epochNanos, Throwable exception, Attributes attributes, int totalAttributeCount) Returns a new immutableExceptionEventData
.- Parameters:
epochNanos
- epoch timestamp in nanos of theExceptionEventData
.exception
- theexception
of theEvent
.attributes
- the additional attributes of theExceptionEventData
.totalAttributeCount
- the total number of attributes for this Event.- Returns:
- a new immutable
ExceptionEventData
-
getException
Throwable getException()Return theexception
of theExceptionEventData
.- Returns:
- the
exception
of theExceptionEventData
-