Package io.opentelemetry.sdk.trace.data
Interface ExceptionEventData
- All Superinterfaces:
EventData
Data representation of an event for a recorded exception.
- Since:
- 1.44.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExceptionEventDatacreate(long epochNanos, Throwable exception, io.opentelemetry.api.common.Attributes attributes, int totalAttributeCount) Returns a new immutableExceptionEventData.Return theexceptionof 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, io.opentelemetry.api.common.Attributes attributes, int totalAttributeCount) Returns a new immutableExceptionEventData.- Parameters:
epochNanos- epoch timestamp in nanos of theExceptionEventData.exception- theexceptionof 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 theexceptionof theExceptionEventData.- Returns:
- the
exceptionof theExceptionEventData
-