Commit 852a977
authored
fix(subscriber): ignore metadata that is not a span or event (#554)
As described in #553, there are parts of code that expects tracing
`Metadata` to be of type `EVENT` or `SPAN`.
This PR ensure that any tracing metadata with a different type will be
ignored instead of panicking when running in debug mode when converting
from `tracing_core::Metadata`:
https://github.com/tokio-rs/console/blob/60bcf87537d414b21efbd84159207f9ecda5e914/console-api/src/common.rs#L481 parent a0d20fd commit 852a977
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
532 | 536 | | |
533 | 537 | | |
534 | 538 | | |
| |||
0 commit comments