@ThreadSafe public class DefaultTracerProvider extends java.lang.Object implements TracerProvider
Modifier and Type | Method and Description |
---|---|
Tracer |
get(java.lang.String instrumentationName)
Gets or creates a named tracer instance.
|
Tracer |
get(java.lang.String instrumentationName,
java.lang.String instrumentationVersion)
Gets or creates a named and versioned tracer instance.
|
static TracerProvider |
getInstance()
Returns a
TracerProvider singleton that is the default implementation for TracerProvider . |
public static TracerProvider getInstance()
TracerProvider
singleton that is the default implementation for TracerProvider
.TracerProvider
singleton that is the default implementation for TracerProvider
.public Tracer get(java.lang.String instrumentationName)
TracerProvider
get
in interface TracerProvider
instrumentationName
- The name of the instrumentation library, not the name of the
instrument*ed* library (e.g., "io.opentelemetry.contrib.mongodb"). Must not be null.public Tracer get(java.lang.String instrumentationName, java.lang.String instrumentationVersion)
TracerProvider
get
in interface TracerProvider
instrumentationName
- The name of the instrumentation library, not the name of the
instrument*ed* library (e.g., "io.opentelemetry.contrib.mongodb"). Must not be null.instrumentationVersion
- The version of the instrumentation library (e.g.,
"semver:1.0.0").