File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
opentelemetry/src/context Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+
12use crate :: otel_warn;
23#[ cfg( feature = "trace" ) ]
34use crate :: trace:: context:: SynchronizedSpan ;
@@ -78,7 +79,7 @@ thread_local! {
7879#[ derive( Clone , Default ) ]
7980pub struct Context {
8081 #[ cfg( feature = "trace" ) ]
81- pub ( super ) span : Option < Arc < SynchronizedSpan > > ,
82+ pub ( crate ) span : Option < Arc < SynchronizedSpan > > ,
8283 entries : Option < Arc < EntryMap > > ,
8384}
8485
@@ -314,15 +315,15 @@ impl Context {
314315 }
315316
316317 #[ cfg( feature = "trace" ) ]
317- pub ( super ) fn current_with_synchronized_span ( value : SynchronizedSpan ) -> Self {
318+ pub ( crate ) fn current_with_synchronized_span ( value : SynchronizedSpan ) -> Self {
318319 Context {
319320 span : Some ( Arc :: new ( value) ) ,
320321 entries : Context :: map_current ( |cx| cx. entries . clone ( ) ) ,
321322 }
322323 }
323324
324325 #[ cfg( feature = "trace" ) ]
325- pub ( super ) fn with_synchronized_span ( & self , value : SynchronizedSpan ) -> Self {
326+ pub ( crate ) fn with_synchronized_span ( & self , value : SynchronizedSpan ) -> Self {
326327 Context {
327328 span : Some ( Arc :: new ( value) ) ,
328329 entries : self . entries . clone ( ) ,
Original file line number Diff line number Diff line change 1+ mod context_store;
2+
3+ pub use context_store:: Context ;
4+ pub use context_store:: ContextGuard ;
You can’t perform that action at this time.
0 commit comments