Package io.opentelemetry.api.trace
Interface TracerBuilder
-
public interface TracerBuilder
Builder class for creatingTracer
instances.- Since:
- 1.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tracer
build()
Gets or creates aTracer
instance.TracerBuilder
setInstrumentationVersion(String instrumentationVersion)
Assign a version to the instrumentation library that is using the resulting Tracer.TracerBuilder
setSchemaUrl(String schemaUrl)
Assign an OpenTelemetry schema URL to the resulting Tracer.
-
-
-
Method Detail
-
setSchemaUrl
TracerBuilder setSchemaUrl(String schemaUrl)
Assign an OpenTelemetry schema URL to the resulting Tracer.- Parameters:
schemaUrl
- The URL of the OpenTelemetry schema being used by this instrumentation library.- Returns:
- this
-
setInstrumentationVersion
TracerBuilder setInstrumentationVersion(String instrumentationVersion)
Assign a version to the instrumentation library that is using the resulting Tracer.- Parameters:
instrumentationVersion
- The version of the instrumentation library.- Returns:
- this
-
-