Package io.opentelemetry.sdk.trace.data
Class ImmutableEventData
- java.lang.Object
-
- io.opentelemetry.sdk.trace.data.ImmutableEventData
-
- All Implemented Interfaces:
EventData
- Direct Known Subclasses:
AutoValue_ImmutableEventData
@Immutable abstract class ImmutableEventData extends java.lang.Object implements EventData
An immutable implementation of theEventData
.
-
-
Constructor Summary
Constructors Constructor Description ImmutableEventData()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static EventData
create(long epochNanos, java.lang.String name, Attributes attributes)
Returns a new immutableEvent
.(package private) static EventData
create(long epochNanos, java.lang.String name, Attributes attributes, int totalAttributeCount)
Returns a new immutableEvent
.-
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, getName, getTotalAttributeCount
-
-
-
-
Method Detail
-
create
static EventData create(long epochNanos, java.lang.String name, Attributes attributes)
Returns a new immutableEvent
.- Parameters:
epochNanos
- epoch timestamp in nanos of theEvent
.name
- the name of theEvent
.attributes
- the attributes of theEvent
.- Returns:
- a new immutable
Event<T>
-
create
static EventData create(long epochNanos, java.lang.String name, Attributes attributes, int totalAttributeCount)
Returns a new immutableEvent
.- Parameters:
epochNanos
- epoch timestamp in nanos of theEvent
.name
- the name of theEvent
.attributes
- the attributes of theEvent
.totalAttributeCount
- the total number of attributes recorded for theEvent
.- Returns:
- a new immutable
Event<T>
-
-