We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f55f42 commit 23ce8e3Copy full SHA for 23ce8e3
opentelemetry/src/context.rs
@@ -493,12 +493,11 @@ impl Context {
493
494
#[cfg(feature = "trace")]
495
pub(crate) fn current_with_synchronized_span(value: SynchronizedSpan) -> Self {
496
- Context {
+ Self::map_current(|cx| Context {
497
span: Some(Arc::new(value)),
498
- entries: Context::map_current(|cx| cx.entries.clone()),
499
- suppress_telemetry: Context::map_current(|cx| cx.suppress_telemetry),
500
- // TODO: Do this while inside the `map_current` closure
501
- }
+ entries: cx.entries.clone(),
+ suppress_telemetry: cx.suppress_telemetry,
+ })
502
}
503
504
0 commit comments