diff --git a/ocaml/libs/tracing/tracing.ml b/ocaml/libs/tracing/tracing.ml index a53796662c5..6d81ee0e25b 100644 --- a/ocaml/libs/tracing/tracing.ml +++ b/ocaml/libs/tracing/tracing.ml @@ -656,7 +656,8 @@ module Tracer = struct ; ("traceparent.new", SpanContext.to_traceparent new_context) ] in - let updated_span = {span with context= new_context} in + let updated_span = {span with parent= Some parent} in + let updated_span = {updated_span with context= new_context} in let updated_span = { updated_span with