You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->
## DESCRIBE YOUR PR
Documents the newly released OTEL integration for the Rust SDK.
Content is largely the same as the crate docs available here
https://crates.io/crates/sentry-opentelemetryClosesgetsentry/sentry-rust#781
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [X] Urgent deadline (GA date, etc.): 13/05 (this has been already
released, we should add docs ASAP) <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [ ] None: Not urgent, can wait up to 1 week+
---------
Co-authored-by: Alex Krawiec <[email protected]>
Copy file name to clipboardExpand all lines: docs/platforms/rust/common/tracing/instrumentation/automatic-instrumentation.mdx
+67Lines changed: 67 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,73 @@ fn main_span2() {
49
49
}
50
50
```
51
51
52
+
## OpenTelemetry Integration
53
+
54
+
The Rust SDK offers an integration for the OpenTelemetry ecosystem.
55
+
The integration can automatically capture Sentry [spans/transactions](/concepts/key-terms/tracing/distributed-tracing/#traces-transactions-and-spans) for every span created through the OpenTelemetry API, with support for [distributed tracing](/concepts/key-terms/tracing/distributed-tracing/).
56
+
The integration also captures errors with the correct span and trace associations.
57
+
58
+
For this integration to work as intended, only the OpenTelemetry tracing API should be used to manage spans.
59
+
Mixing it with the Sentry tracing API will result in incorrectly nested spans.
60
+
61
+
To get started using the OpenTelemetry integration for the Sentry Rust SDK, add the necessary dependencies to your `Cargo.toml`:
0 commit comments