Package io.opentelemetry.api.trace
Interface TracerBuilder
-
- All Known Implementing Classes:
DefaultTracerBuilder,ExtendedDefaultTracerBuilder,SdkTracerBuilder
public interface TracerBuilderBuilder class for creatingTracerinstances.Tracers 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 Tracerbuild()Gets or creates aTracerinstance.TracerBuildersetInstrumentationVersion(java.lang.String instrumentationScopeVersion)Sets the instrumentation scope version of the resultingTracer.TracerBuildersetSchemaUrl(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
-
-