Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/concepts/otlp/sentry-with-otel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ The following SDKs support the `propagateTraceparent` option:
- <LinkWithPlatformIcon platform="native" label="Native" url="/platforms/native/configuration/options/#propagate_traceparent" />
- <LinkWithPlatformIcon platform="react-native" label="React Native" url="/platforms/react-native/configuration/options/#propagateTraceparent" />

### .NET

- <LinkWithPlatformIcon platform="dotnet" label=".NET" url="/platforms/dotnet/configuration/options/#PropagateTraceparent" />

</div>
</div>

Expand Down
10 changes: 10 additions & 0 deletions docs/platforms/dotnet/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -345,3 +345,13 @@ Disables the `SentryHttpMessageHandler`, which normally instruments outgoing HTT
This option was added in SDK version 5.1.0.

</SdkOption>

<SdkOption name="PropagateTraceparent" type="bool" defaultValue="false" availableSince="6.0.0">

If set to `true`, the SDK adds the [W3C `traceparent` header](https://www.w3.org/TR/trace-context/) to outgoing HTTP requests, in addition to the `sentry-trace` and `baggage` headers. Enable this when your backend services are instrumented with a W3C Trace Context compatible library, such as OpenTelemetry, and you want to continue the trace from the client.

The `traceparent` header is only attached to requests whose URLs match `TracePropagationTargets`.

This option was added in SDK version 6.0.0.

</SdkOption>
Loading