Top Fields Constructors Methods
io.opentelemetry.api.trace

pack-priv Class DefaultTracerProvider

extends Object
implements TracerProvider
Class Inheritance
All Implemented Interfaces
io.opentelemetry.api.trace.TracerProvider
Annotations
@ThreadSafe
Imports
io.opentelemetry.api.internal.IncubatingUtil, javax.annotation.concurrent.ThreadSafe

Field Summary

Modifier and TypeField and Description
private static final TracerProvider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Tracer
get(String
A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
instrumentationScopeName
)

Implements io.opentelemetry.api.trace.TracerProvider.get.

Gets or creates a named tracer instance.

public Tracer
get(String
A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.
instrumentationScopeName
,
String
The version of the instrumentation scope (e.g., "1.0.0").
instrumentationScopeVersion
)

Implements io.opentelemetry.api.trace.TracerProvider.get.

Gets or creates a named and versioned tracer instance.

pack-priv static TracerProvider
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final TracerProvider INSTANCE

Constructor Detail

DefaultTracerProviderback to summary
private DefaultTracerProvider()

Method Detail

getback to summary
public Tracer get(String instrumentationScopeName)

Implements io.opentelemetry.api.trace.TracerProvider.get.

Doc from io.opentelemetry.api.trace.TracerProvider.get.

Gets or creates a named tracer instance.

Parameters
instrumentationScopeName:String

A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.

Returns:Tracer

a tracer instance.

Annotations
@Override
getback to summary
public Tracer get(String instrumentationScopeName, String instrumentationScopeVersion)

Implements io.opentelemetry.api.trace.TracerProvider.get.

Doc from io.opentelemetry.api.trace.TracerProvider.get.

Gets or creates a named and versioned tracer instance.

Parameters
instrumentationScopeName:String

A name uniquely identifying the instrumentation scope, such as the instrumentation library, package, or fully qualified class name. Must not be null.

instrumentationScopeVersion:String

The version of the instrumentation scope (e.g., "1.0.0").

Returns:Tracer

a tracer instance.

Annotations
@Override
getInstanceback to summary
pack-priv static TracerProvider getInstance()