Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Sep 23, 2024
1 parent 97b0421 commit 838c33e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,21 @@ public interface TracerProvider {
Tracer createTracer(String libraryName, String libraryVersion, String azNamespace, TracingOptions options);

/**
* Creates tracer provider instance.
* <p>
* Creates tracer provider instance.
*
* <p><strong>Code Samples</strong></p>
*
* <!-- src_embed com.azure.core.util.tracing.TracerProvider#create-tracer -->
* <pre>
* Tracer tracer = TracerProvider.getDefaultProvider&#40;&#41;.createTracer&#40;&quot;azure-storage-blobs&quot;, &quot;12.20.0&quot;,
* &quot;Microsoft.Storage&quot;, clientOptions.getTracingOptions&#40;&#41;&#41;;
*
* SdkTelemetryOptions sdkTelemetryOptions = new SdkTelemetryOptions&#40;&#41;
* .setSdkName&#40;&quot;azure-storage-blobs&quot;&#41;
* .setSdkVersion&#40;&quot;12.20.0&quot;&#41;
* .setResourceProviderNamespace&#40;&quot;Microsoft.Storage&quot;&#41;
* .setSchemaUrl&#40;&quot;https:&#47;&#47;opentelemetry.io&#47;schemas&#47;1.23.1&quot;&#41;;
*
* Tracer tracer = TracerProvider.getDefaultProvider&#40;&#41;
* .createTracer&#40;sdkTelemetryOptions, clientOptions.getTracingOptions&#40;&#41;&#41;;
* HttpPipeline pipeline = new HttpPipelineBuilder&#40;&#41;
* .tracer&#40;tracer&#41;
* .clientOptions&#40;clientOptions&#41;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ public void createTracer() {
.setResourceProviderNamespace("Microsoft.Storage")
.setSchemaUrl("https://opentelemetry.io/schemas/1.23.1");

Tracer tracer = TracerProvider.getDefaultProvider().createTracer(sdkTelemetryOptions, clientOptions.getTracingOptions());
Tracer tracer = TracerProvider.getDefaultProvider()
.createTracer(sdkTelemetryOptions, clientOptions.getTracingOptions());
HttpPipeline pipeline = new HttpPipelineBuilder()
.tracer(tracer)
.clientOptions(clientOptions)
Expand Down

0 comments on commit 838c33e

Please sign in to comment.