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 Details

    • get

      default EventEmitter get(String instrumentationScopeName)
      Gets or creates a named EventEmitter instance which emits events to the eventDomain.
      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

      EventEmitterBuilder eventEmitterBuilder(String instrumentationScopeName)
      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

      static EventEmitterProvider noop()
      Returns a no-op EventEmitterProvider which provides Loggers which do not record or emit.