Class ImmutableEventData
java.lang.Object
io.opentelemetry.sdk.trace.data.ImmutableEventData
- All Implemented Interfaces:
EventData
- Direct Known Subclasses:
AutoValue_ImmutableEventData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static EventDatacreate(long epochNanos, String name, Attributes attributes) Returns a new immutableEvent.(package private) static EventDatacreate(long epochNanos, String name, Attributes attributes, int totalAttributeCount) Returns a new immutableEvent.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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>
-