Skip to content

Commit d1c794a

Browse files
Update docs/platforms/dotnet/common/tracing/instrumentation/opentelemetry.mdx
Co-authored-by: Stefan Pölz <[email protected]>
1 parent cd8c23d commit d1c794a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/platforms/dotnet/common/tracing/instrumentation/opentelemetry.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ With Sentry’s OpenTelemetry SDK, an OpenTelemetry `Span` becomes a Sentry `Tra
2020

2121
### Capturing exceptions
2222

23-
OpenTelemetry in .NET is implemented via the System.Diagnostics.Activity namespace. However not all of the functionality in that namespace is supported by OpenTelemetry. In particular, it is [not recommended](https://github.com/open-telemetry/opentelemetry-specification/pull/4333) that you use the `Activity.RecordException` or `Activity.AddException` methods. Using either of these methods will result in valuable **information being removed from exceptions** before these get captured by Sentry.
23+
OpenTelemetry in .NET is implemented via the System.Diagnostics.Activity namespace. However, not all of the functionality in that namespace is supported by OpenTelemetry. In particular, it is [not recommended](https://github.com/open-telemetry/opentelemetry-specification/pull/4333) that you use the `Activity.RecordException` or `Activity.AddException` methods. Using either of these methods will result in valuable **information being removed from exceptions** before these get captured by Sentry.
2424

2525
Instead you should either log the exceptions (using `ILogger`) or capture the exceptions directly using `SentrySdk.CaptureException`.
2626

0 commit comments

Comments
 (0)