@ThreadSafe public class DefaultTracerProvider extends Object implements TracerProvider
| Modifier and Type | Method and Description |
|---|---|
Tracer |
get(String instrumentationName)
Gets or creates a named tracer instance.
|
Tracer |
get(String instrumentationName,
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(String instrumentationName)
TracerProviderget in interface TracerProviderinstrumentationName - 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(String instrumentationName, String instrumentationVersion)
TracerProviderget in interface TracerProviderinstrumentationName - 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").