Commit 89e978b
committed
Configure sentry_tracing event filtering
Import EventFilter and replace the plain sentry_tracing::layer() with a layer configured via .event_filter(...). The filter maps tracing levels to Sentry behavior: ERROR -> Event, WARN/INFO/DEBUG -> Breadcrumb, TRACE -> Ignore. This customizes which tracing records become Sentry events vs breadcrumbs (or are dropped) while keeping the existing tracing subscriber initialization.1 parent 5e064fa commit 89e978b
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
266 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
267 | 276 | | |
268 | 277 | | |
269 | 278 | | |
| |||
0 commit comments