@Immutable public abstract class ImmutableEvent extends Object implements SpanData.Event
SpanData.Event.| Modifier and Type | Method and Description |
|---|---|
static ImmutableEvent |
create(long epochNanos,
String name,
io.opentelemetry.common.Attributes attributes)
Returns a new immutable
Event. |
static ImmutableEvent |
create(long epochNanos,
String name,
io.opentelemetry.common.Attributes attributes,
int totalAttributeCount)
Returns a new immutable
Event. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getEpochNanos, getName, getTotalAttributeCountpublic static ImmutableEvent create(long epochNanos, String name, io.opentelemetry.common.Attributes attributes)
Event.epochNanos - epoch timestamp in nanos of the Event.name - the name of the Event.attributes - the attributes of the Event.Event<T>public static ImmutableEvent create(long epochNanos, String name, io.opentelemetry.common.Attributes attributes, int totalAttributeCount)
Event.epochNanos - epoch timestamp in nanos of the Event.name - the name of the Event.attributes - the attributes of the Event.totalAttributeCount - the total number of attributes for this Event.Event<T>