File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
rust/cubestore/cubestore/src/telemetry Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 11use crate :: config:: injection:: DIService ;
22use crate :: CubeError ;
33use std:: sync:: Arc ;
4+ use tracing:: Span ;
45
56pub type TraceIdAndSpanId = ( u128 , u64 ) ;
67
78pub trait TracingHelper : DIService + Send + Sync {
89 fn trace_and_span_id ( & self ) -> Option < TraceIdAndSpanId > ;
10+ fn span_from_existing_trace (
11+ & self ,
12+ trace_id_and_span_id : Option < TraceIdAndSpanId > ,
13+ ) -> Option < Span > ;
914}
1015
1116pub struct TracingHelperImpl ;
@@ -14,6 +19,13 @@ impl TracingHelper for TracingHelperImpl {
1419 fn trace_and_span_id ( & self ) -> Option < TraceIdAndSpanId > {
1520 None
1621 }
22+
23+ fn span_from_existing_trace (
24+ & self ,
25+ _trace_id_and_span_id : Option < TraceIdAndSpanId > ,
26+ ) -> Option < Span > {
27+ None
28+ }
1729}
1830
1931impl TracingHelperImpl {
You can’t perform that action at this time.
0 commit comments