TracerProvider Interface
public interface TracerProvider
Resolves and provides Tracer implementation.
This class is intended to be used by Azure client libraries and provides abstraction over possible tracing implementations. Application developers should use tracing libraries such as OpenTelemetry or Spring tracing.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Tracer |
createTracer(String libraryName, String libraryVersion, String azNamespace, TracingOptions options)
Creates named and versioned tracer instance. |
static
Tracer |
getDefaultProvider()
Returns default implementation of |
Method Details
createTracer
public abstract Tracer createTracer(String libraryName, String libraryVersion, String azNamespace, TracingOptions options)
Creates named and versioned tracer instance.
Tracer tracer = TracerProvider.getDefaultProvider().createTracer("azure-storage-blobs", "12.20.0",
"Microsoft.Storage", clientOptions.getTracingOptions());
HttpPipeline pipeline = new HttpPipelineBuilder()
.tracer(tracer)
.clientOptions(clientOptions)
.build();
Parameters:
Returns:
getDefaultProvider
public static TracerProvider getDefaultProvider()
Returns default implementation of TracerProvider
that uses SPI to resolve tracing implementation.
Returns:
TracerProvider
Applies to
Azure SDK for Java
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示