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
@Immutable abstract class ImmutableExceptionEventData extends java.lang.Object implements ExceptionEventData
An effectively immutable implementation ofExceptionEventData
.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
EXCEPTION_EVENT_NAME
-
Constructor Summary
Constructors Constructor Description ImmutableExceptionEventData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static ExceptionEventData
create(long epochNanos, java.lang.Throwable exception, Attributes attributes, int totalAttributeCount)
Returns a new immutableEvent
.java.lang.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 Detail
-
EXCEPTION_EVENT_NAME
private static final java.lang.String EXCEPTION_EVENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public final java.lang.String getName()
Description copied from interface:EventData
Return the name of theEventData
.
-
create
static ExceptionEventData create(long epochNanos, java.lang.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>
-
-