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 classDefaultEventLogger.NoOpEventBuilder
-
Field Summary
Fields Modifier and Type Field Description private static EventLoggerINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateDefaultEventLogger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventBuilderbuilder(java.lang.String eventName)Return aEventBuilderto emit an event.(package private) static EventLoggergetInstance()
-
-
-
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:EventLoggerReturn aEventBuilderto emit an event.- Specified by:
builderin 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.
-
-