File tree 4 files changed +11
-8
lines changed
4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -437,10 +437,7 @@ module Span = struct
437
437
438
438
let to_propagation_context span =
439
439
let traceparent = span |> get_context |> SpanContext. to_traceparent in
440
- span
441
- |> get_context
442
- |> SpanContext. context_of_span_context
443
- |> TraceContext. with_traceparent (Some traceparent)
440
+ span |> get_trace_context |> TraceContext. with_traceparent (Some traceparent)
444
441
445
442
let with_trace_context span trace_context =
446
443
let span_context =
Original file line number Diff line number Diff line change @@ -83,10 +83,7 @@ module Content = struct
83
83
)
84
84
in
85
85
let tags =
86
- let span_context = Span. get_context s in
87
- let trace_context =
88
- SpanContext. context_of_span_context span_context
89
- in
86
+ let trace_context = Span. get_trace_context s in
90
87
let baggage =
91
88
TraceContext. baggage_of trace_context |> Option. value ~default: []
92
89
in
Original file line number Diff line number Diff line change @@ -2988,6 +2988,7 @@ and perform_exn ?result (op : operation) (t : Xenops_task.task_handle) : unit =
2988
2988
]
2989
2989
)
2990
2990
t ;
2991
+ with_tracing ~task: t ~name: " VM_migrate_downtime_end" Fun. id ;
2991
2992
Handshake. send s Handshake. Success ;
2992
2993
debug " VM.receive_memory: Synchronisation point 4"
2993
2994
with e ->
Original file line number Diff line number Diff line change @@ -2517,6 +2517,7 @@ module VM = struct
2517
2517
@@ fun () -> pre_suspend_callback task
2518
2518
) ;
2519
2519
2520
+ with_tracing ~task ~name: " VM_save_request_shutdown" @@ fun () ->
2520
2521
if
2521
2522
not
2522
2523
( with_tracing ~task
@@ -2525,6 +2526,13 @@ module VM = struct
2525
2526
)
2526
2527
then
2527
2528
raise (Xenopsd_error Failed_to_acknowledge_suspend_request ) ;
2529
+ (* If this is for a migration, record the begin time *)
2530
+ ( match data with
2531
+ | FD _ ->
2532
+ with_tracing ~task ~name: " VM_migrate_downtime_begin" Fun. id
2533
+ | _ ->
2534
+ ()
2535
+ ) ;
2528
2536
if
2529
2537
not
2530
2538
( with_tracing ~task
You can’t perform that action at this time.
0 commit comments