Package io.opentelemetry.sdk.logs
Interface LogEmitterBuilder
public interface LogEmitterBuilder
Builder class for creating
LogEmitter instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Gets or creates aLogEmitterinstance.setInstrumentationVersion(String instrumentationScopeVersion) Assign a version to the instrumentation scope 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 scope- Returns:
- this
-
setInstrumentationVersion
Assign a version to the instrumentation scope that is using the resultingLogEmitter.- Parameters:
instrumentationScopeVersion- the version of the instrumentation scope- Returns:
- this
-
build
LogEmitter build()Gets or creates aLogEmitterinstance.- Returns:
- a log emitter instance configured with the provided options
-