Package io.opentelemetry.api.trace
Interface TracerBuilder
-
- All Known Implementing Classes:
DefaultTracerBuilder
,ExtendedDefaultTracerBuilder
,SdkTracerBuilder
public interface TracerBuilder
Builder class for creatingTracer
instances.Tracer
s are identified by their scope name, version, and schema URL. These identifying fields, along with attributes, combine to form the instrumentation scope, which is attached to all spans produced by theTracer
.- 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(java.lang.String instrumentationScopeVersion)
Sets the instrumentation scope version of the resultingTracer
.TracerBuilder
setSchemaUrl(java.lang.String schemaUrl)
Set the scope schema URL of the resultingTracer
.
-
-
-
Method Detail
-
setSchemaUrl
TracerBuilder setSchemaUrl(java.lang.String schemaUrl)
- Parameters:
schemaUrl
- The schema URL.- Returns:
- this
-
setInstrumentationVersion
TracerBuilder setInstrumentationVersion(java.lang.String instrumentationScopeVersion)
- Parameters:
instrumentationScopeVersion
- The instrumentation scope version.- Returns:
- this
-
-