Skip to content

Commit 6587b75

Browse files
committed
CP-53470 Rejoin orphaned spans forwarded to xenopsd to their traceparent
Signed-off-by: Aidan Allen <[email protected]>
1 parent b58bf82 commit 6587b75

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ocaml/xenopsd/lib/xenops_migrate.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ module Forwarded_http_request = struct
9595
type t = {
9696
uri: string
9797
; query: (string * string) list
98-
; traceparent: string option
98+
; additional_headers: (string * string) list
9999
; cookie: (string * string) list
100100
; body: string option
101101
}

ocaml/xenopsd/lib/xenopsd.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ let handle_received_fd this_connection =
356356
let context = {Xenops_server.transferred_fd= Some received_fd} in
357357
let uri = Uri.of_string req.Xenops_migrate.Forwarded_http_request.uri in
358358
let traceparent =
359-
req.Xenops_migrate.Forwarded_http_request.traceparent
359+
List.assoc_opt "traceparent"
360+
req.Xenops_migrate.Forwarded_http_request.additional_headers
360361
in
361362
fn uri req.Xenops_migrate.Forwarded_http_request.cookie traceparent
362363
this_connection context

0 commit comments

Comments
 (0)