Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Motivation Some `Debug` implementations access a span's extensions, for example a `color_eyre` `Report` when printing a Spantrace. This can currently lead to a deadlock because `tracing-opentelemetry`'s tracing `Layer` holds an `extensions_mut()` guard for its Span while recording the event. ## Solution Move the the `OtelData` out of the span to not hold the lock and later write the extension back.
- Loading branch information