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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,13 @@
4
4
5
5
### Breaking changes
6
6
7
-
- fix(actix): capture only server errors ([#877](https://github.com/getsentry/sentry-rust/pull/877))
7
+
- ref(tracing): rework tracing to Sentry span name/op conversion ([#887](https://github.com/getsentry/sentry-rust/pull/887)) by @lcian
8
+
- The `tracing` integration now uses the tracing span name as the Sentry span name by default.
9
+
- Before this change, the span name would be set based on the `tracing` span target (<module>::<function> when using the `tracing::instrument` macro).
10
+
- The `tracing` integration now uses `default` as the default Sentry span op.
11
+
- Before this change, the span op would be set based on the `tracing` span name.
12
+
- When upgrading, please ensure to adapt any queries, metrics or dashboards to use the new span names/ops.
13
+
- fix(actix): capture only server errors ([#877](https://github.com/getsentry/sentry-rust/pull/877)) by @lcian
8
14
- The Actix integration now properly honors the `capture_server_errors` option (enabled by default), capturing errors returned by middleware only if they are server errors (HTTP status code 5xx).
9
15
- Previously, if a middleware were to process the request after the Sentry middleware and return an error, our middleware would always capture it and send it to Sentry, regardless if it was a client, server or some other kind of error.
10
16
- With this change, we capture errors returned by middleware only if those errors can be classified as server errors.
@@ -17,6 +23,27 @@
17
23
18
24
### Features
19
25
26
+
- ref(tracing): rework tracing to Sentry span name/op conversion ([#887](https://github.com/getsentry/sentry-rust/pull/887)) by @lcian
27
+
- Additional special fields have been added that allow overriding certain data on the Sentry span:
28
+
-`sentry.op`: override the Sentry span op.
29
+
-`sentry.name`: override the Sentry span name.
30
+
-`sentry.trace`: given a string matching a valid `sentry-trace` header (sent automatically by client SDKs), continues the distributed trace instead of starting a new one. If the value is not a valid `sentry-trace` header or a trace is already started, this value is ignored.
31
+
-`sentry.op` and `sentry.name` can also be applied retroactively by declaring fields with value `tracing::field::Empty` and then recorded using `tracing::Span::record`.
0 commit comments