Skip to content

Commit

Permalink
Fix trace id is not transmitted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmjoy committed Aug 26, 2022
1 parent 49f6d76 commit 152a2ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/trace/trace_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ impl TracingContext {
propagation: &PropagationContext,
) -> Span {
let mut span = self.create_entry_span(operation_name);
self.trace_id = propagation.parent_trace_id.clone();
span.with_span_object_mut(|span| {
span.refs.push(SegmentReference {
ref_type: RefType::CrossProcess as i32,
Expand Down

0 comments on commit 152a2ce

Please sign in to comment.