Interface LogEmitterBuilder
public interface LogEmitterBuilder
Builder class for creating
LogEmitter instances.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Gets or creates aLogEmitterinstance.setInstrumentationVersion(String instrumentationVersion) Assign a version to the instrumentation library that is using the resultingLogEmitter.setSchemaUrl(String schemaUrl) Assign an OpenTelemetry schema URL to the resultingLogEmitter.
-
Method Details
-
setSchemaUrl
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
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
-