Package io.opentelemetry.api.trace
Interface TracerBuilder
-
public interface TracerBuilderBuilder class for creatingTracerinstances.- Since:
- 1.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tracerbuild()Gets or creates aTracerinstance.TracerBuildersetInstrumentationVersion(String instrumentationVersion)Assign a version to the instrumentation library that is using the resulting Tracer.TracerBuildersetSchemaUrl(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
-
-