@Immutable public abstract class EventImpl extends Object implements SpanData.Event
Event
by adding the time at which the event occurred.Modifier and Type | Method and Description |
---|---|
static EventImpl |
create(long epochNanos,
String name,
io.opentelemetry.common.Attributes attributes)
Returns a new immutable
Event . |
static EventImpl |
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, wait
getEpochNanos, getTotalAttributeCount
public static EventImpl 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 EventImpl 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>