Commit c589841 1 parent 9d3a507 commit c589841 Copy full SHA for c589841
File tree 2 files changed +8
-3
lines changed
opentelemetry/src/context
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+
1
2
use crate :: otel_warn;
2
3
#[ cfg( feature = "trace" ) ]
3
4
use crate :: trace:: context:: SynchronizedSpan ;
@@ -78,7 +79,7 @@ thread_local! {
78
79
#[ derive( Clone , Default ) ]
79
80
pub struct Context {
80
81
#[ cfg( feature = "trace" ) ]
81
- pub ( super ) span : Option < Arc < SynchronizedSpan > > ,
82
+ pub ( crate ) span : Option < Arc < SynchronizedSpan > > ,
82
83
entries : Option < Arc < EntryMap > > ,
83
84
}
84
85
@@ -314,15 +315,15 @@ impl Context {
314
315
}
315
316
316
317
#[ 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 {
318
319
Context {
319
320
span : Some ( Arc :: new ( value) ) ,
320
321
entries : Context :: map_current ( |cx| cx. entries . clone ( ) ) ,
321
322
}
322
323
}
323
324
324
325
#[ 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 {
326
327
Context {
327
328
span : Some ( Arc :: new ( value) ) ,
328
329
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