Class ExtendedDefaultTracerBuilder
- java.lang.Object
-
- io.opentelemetry.api.incubator.trace.ExtendedDefaultTracerBuilder
-
- All Implemented Interfaces:
TracerBuilder
final class ExtendedDefaultTracerBuilder extends java.lang.Object implements TracerBuilder
-
-
Field Summary
Fields Modifier and Type Field Description private static ExtendedDefaultTracerBuilder
INSTANCE
-
Constructor Summary
Constructors Constructor Description ExtendedDefaultTracerBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tracer
build()
Gets or creates aTracer
instance.(package private) static TracerBuilder
getInstance()
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
.
-
-
-
Field Detail
-
INSTANCE
private static final ExtendedDefaultTracerBuilder INSTANCE
-
-
Method Detail
-
getInstance
static TracerBuilder getInstance()
-
setSchemaUrl
public TracerBuilder setSchemaUrl(java.lang.String schemaUrl)
Description copied from interface:TracerBuilder
- Specified by:
setSchemaUrl
in interfaceTracerBuilder
- Parameters:
schemaUrl
- The schema URL.- Returns:
- this
-
setInstrumentationVersion
public TracerBuilder setInstrumentationVersion(java.lang.String instrumentationScopeVersion)
Description copied from interface:TracerBuilder
- Specified by:
setInstrumentationVersion
in interfaceTracerBuilder
- Parameters:
instrumentationScopeVersion
- The instrumentation scope version.- Returns:
- this
-
build
public Tracer build()
Description copied from interface:TracerBuilder
Gets or creates aTracer
instance.- Specified by:
build
in interfaceTracerBuilder
- Returns:
- a
Tracer
instance configured with the provided options.
-
-