@ThreadSafe
public interface TracerProvider
Tracer
s. Although the class is provided at runtime via
TracerProviderFactory
, the name Provider is for consistency with other languages.OpenTelemetry
,
Tracer
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.
|
Tracer get(java.lang.String instrumentationName)
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.Tracer get(java.lang.String instrumentationName, java.lang.String instrumentationVersion)
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").