Skip to content

Commit

Permalink
remove sethttpflavor (#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishweshbankwar authored Jul 22, 2022
1 parent 795aedc commit 1cd84d8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/OpenTelemetry.Instrumentation.Http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,6 @@ applications, it underneath uses `HttpWebRequest`. Because of this,
Framework applications, irrespective of whether `HttpWebRequest` or `HttpClient`
is used.

### SetHttpFlavor

By default, this instrumentation does not add the `http.flavor` attribute. The
`http.flavor` attribute specifies the kind of HTTP protocol used (e.g., `1.1`
for HTTP 1.1). The `SetHttpFlavor` option can be used to include the
`http.flavor` attribute.

The following example shows how to use `SetHttpFlavor`.

```csharp
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
.AddHttpClientInstrumentation(
(options) => options.SetHttpFlavor = true)
.AddConsoleExporter()
.Build();
```

### Filter

This instrumentation by default collects all the outgoing HTTP requests. It
Expand Down

0 comments on commit 1cd84d8

Please sign in to comment.