Skip to content

Commit ad8ba09

Browse files
committed
remove html tag and fix link
1 parent 0cf33df commit ad8ba09

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/core/extensions/httpclient-latency-extensions.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ For more information, see [dotnet package add](../tools/dotnet-package-add.md) o
9090
### Register HTTP client latency telemetry
9191

9292
To add HTTP client latency telemetry to your application, call the <xref:Microsoft.Extensions.DependencyInjection.HttpClientLatencyTelemetryExtensions.AddHttpClientLatencyTelemetry*> extension method when configuring your services:
93-
<pre>
93+
9494
```csharp
9595
using Microsoft.Extensions.DependencyInjection;
9696

@@ -100,15 +100,14 @@ var builder = WebApplication.CreateBuilder(args);
100100
builder.Services.AddHttpClient();
101101

102102
// Add HTTP client latency telemetry
103-
<span style="color: yellow">builder.Services.AddHttpClientLatencyTelemetry();</span>
103+
builder.Services.AddHttpClientLatencyTelemetry();
104104
```
105-
</pre>
106105

107106
This registration adds a `DelegatingHandler` to all HTTP clients created through <xref:System.Net.Http.IHttpClientFactory>, collecting detailed latency information for each request.
108107

109108
### Configure telemetry options
110109

111-
You configure telemetry collection through the <xref:Microsoft.Extensions.Http.Latency.HttpClientLatencyTelemetryOptions> ([standard options pattern](https://learn.microsoft.com/en-us/dotnet/core/extensions/options)).
110+
You configure telemetry collection through the <xref:Microsoft.Extensions.Http.Latency.HttpClientLatencyTelemetryOptions> ([standard options pattern](https://learn.microsoft.com/dotnet/core/extensions/options)).
112111
You can supply values either with a delegate or by binding configuration (for example, `appsettings.json`).
113112
The options instance is resolved once per handler pipeline so changes apply to new clients/handlers.
114113

0 commit comments

Comments
 (0)