Package io.opentelemetry.api.events
Interface EventEmitterProvider
@ThreadSafe
public interface EventEmitterProvider
A registry for creating scoped
EventEmitters. The name Provider is for consistency
with other languages and it is NOT loaded using reflection.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioneventEmitterBuilder(String instrumentationScopeName) Creates a LoggerBuilder for a named EventEmitter instance.default EventEmitterGets or creates a named EventEmitter instance which emits events to theeventDomain.static EventEmitterProvidernoop()Returns a no-opEventEmitterProviderwhich provides Loggers which do not record or emit.
-
Method Details
-
get
Gets or creates a named EventEmitter instance which emits events to theeventDomain.- Parameters:
instrumentationScopeName- A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.- Returns:
- a Logger instance.
-
eventEmitterBuilder
Creates a LoggerBuilder for a named EventEmitter instance.- Parameters:
instrumentationScopeName- A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.- Returns:
- a LoggerBuilder instance.
-
noop
Returns a no-opEventEmitterProviderwhich provides Loggers which do not record or emit.
-