Class DefaultEventLogger
- java.lang.Object
-
- io.opentelemetry.api.incubator.events.DefaultEventLogger
-
- All Implemented Interfaces:
EventLogger
class DefaultEventLogger extends java.lang.Object implements EventLogger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DefaultEventLogger.NoOpEventBuilder
-
Field Summary
Fields Modifier and Type Field Description private static EventLogger
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultEventLogger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventBuilder
builder(java.lang.String eventName)
Return aEventBuilder
to emit an event.(package private) static EventLogger
getInstance()
-
-
-
Field Detail
-
INSTANCE
private static final EventLogger INSTANCE
-
-
Method Detail
-
getInstance
static EventLogger getInstance()
-
builder
public EventBuilder builder(java.lang.String eventName)
Description copied from interface:EventLogger
Return aEventBuilder
to emit an event.- Specified by:
builder
in interfaceEventLogger
- Parameters:
eventName
- the event name, which identifies the class or type of event. Event with the same name are structurally similar to one another. Event names are subject to the same naming rules as attribute names. Notably, they are namespaced to avoid collisions. See event.name semantic conventions for more details.
-
-