Package io.opentelemetry.api.trace
Class DefaultTracerProvider
java.lang.Object
io.opentelemetry.api.trace.DefaultTracerProvider
- All Implemented Interfaces:
TracerProvider
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets or creates a named tracer instance.Gets or creates a named and versioned tracer instance.(package private) static TracerProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.api.trace.TracerProvider
tracerBuilder
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
DefaultTracerProvider
private DefaultTracerProvider()
-
-
Method Details
-
getInstance
-
get
Description copied from interface:TracerProviderGets or creates a named tracer instance.- Specified by:
getin interfaceTracerProvider- Parameters:
instrumentationScopeName- A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.- Returns:
- a tracer instance.
-
get
Description copied from interface:TracerProviderGets or creates a named and versioned tracer instance.- Specified by:
getin interfaceTracerProvider- Parameters:
instrumentationScopeName- A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.instrumentationScopeVersion- The version of the instrumentation scope (e.g., "1.0.0").- Returns:
- a tracer instance.
-