Interface LogEmitterBuilder
-
public interface LogEmitterBuilderBuilder class for creatingLogEmitterinstances.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LogEmitterbuild()Gets or creates aLogEmitterinstance.LogEmitterBuildersetInstrumentationVersion(String instrumentationVersion)Assign a version to the instrumentation library that is using the resultingLogEmitter.LogEmitterBuildersetSchemaUrl(String schemaUrl)Assign an OpenTelemetry schema URL to the resultingLogEmitter.
-
-
-
Method Detail
-
setSchemaUrl
LogEmitterBuilder setSchemaUrl(String schemaUrl)
Assign an OpenTelemetry schema URL to the resultingLogEmitter.- 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 resultingLogEmitter.- Parameters:
instrumentationVersion- the version of the instrumentation library- Returns:
- this
-
build
LogEmitter build()
Gets or creates aLogEmitterinstance.- Returns:
- a log emitter instance configured with the provided options
-
-