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
An immutable implementation of the
EventData
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static EventData
create
(long epochNanos, String name, Attributes attributes) Returns a new immutableEvent
.(package private) static EventData
create
(long epochNanos, 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
-
Constructor Details
-
ImmutableEventData
ImmutableEventData()
-
-
Method Details
-
create
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, 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>
-