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 library
      Returns:
      this
    • setInstrumentationVersion

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

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