Skip to content

Commit

Permalink
expanded instructions around tracing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-hensley committed Aug 21, 2023
1 parent 95c433b commit 1b4c3cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OpenTelemetry.Instrumentation.Http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ public class Program
#### Metrics

> **Note**
> Metrics are only available for .NET Framework when tracing is enabled.
> Metrics are only available for .NET Framework when traces are recorded. This requires:
> 1. Tracing to be enabled by calling `.AddHttpClientInstrumentation()` on `TracerProviderBuilder`
> 2. [If a sampler is in place, return `SamplingDecision.RecordAndSampled` for `ShouldSample`](https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/trace/extending-the-sdk/README.md#filtering-processor)
The following example demonstrates adding `HttpClient` instrumentation with the
extension method `.AddHttpClientInstrumentation()` on `MeterProviderBuilder` to
Expand Down

0 comments on commit 1b4c3cd

Please sign in to comment.