Interface LogEmitterBuilder


public interface LogEmitterBuilder
Builder class for creating LogEmitter instances.
  • Method Details

    • setSchemaUrl

      LogEmitterBuilder setSchemaUrl(String schemaUrl)
      Assign an OpenTelemetry schema URL to the resulting LogEmitter.
      Parameters:
      schemaUrl - the URL of the OpenTelemetry schema being used by this instrumentation scope
      Returns:
      this
    • setInstrumentationVersion

      LogEmitterBuilder setInstrumentationVersion(String instrumentationScopeVersion)
      Assign a version to the instrumentation scope that is using the resulting LogEmitter.
      Parameters:
      instrumentationScopeVersion - the version of the instrumentation scope
      Returns:
      this
    • build

      LogEmitter build()
      Gets or creates a LogEmitter instance.
      Returns:
      a log emitter instance configured with the provided options