Skip to content

Commit 38c1f4f

Browse files
authored
Update CHANGELOG.md
1 parent 46786f4 commit 38c1f4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
### Features
66

77
- feat(tracing): add support for logs (#840) by @lcian
8-
- To capture `tracing` events as Sentry structured logs, enable the `logs` feature of the `sentry` (or `sentry-tracing`) crate. Then, set up a custom event filter to map events to logs based on criteria such as severity. For example:
8+
- To capture `tracing` events as Sentry structured logs, enable the `logs` feature of the `sentry` crate.
9+
- Then, initialize the SDK with `enable_logs: true` in your client options.
10+
- Finally, set up a custom event filter to map events to logs based on criteria such as severity. For example:
911
```rust
1012
let sentry_layer = sentry_tracing::layer().event_filter(|md| match *md.level() {
1113
tracing::Level::ERROR => EventFilter::Event,

0 commit comments

Comments
 (0)