Package io.opentelemetry.sdk.trace.data
Interface ExceptionEventData
-
- All Superinterfaces:
EventData
- All Known Implementing Classes:
AutoValue_ImmutableExceptionEventData
,ImmutableExceptionEventData
@Immutable public interface ExceptionEventData extends EventData
Data representation of an event for a recorded exception.- Since:
- 1.44.0
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ExceptionEventData
create(long epochNanos, java.lang.Throwable exception, Attributes attributes, int totalAttributeCount)
Returns a new immutableExceptionEventData
.java.lang.Throwable
getException()
Return theexception
of theExceptionEventData
.-
Methods inherited from interface io.opentelemetry.sdk.trace.data.EventData
getAttributes, getDroppedAttributesCount, getEpochNanos, getName, getTotalAttributeCount
-
-
-
-
Method Detail
-
create
static ExceptionEventData create(long epochNanos, java.lang.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
java.lang.Throwable getException()
Return theexception
of theExceptionEventData
.- Returns:
- the
exception
of theExceptionEventData
-
-