File tree Expand file tree Collapse file tree
tests/ext/distributed_tracing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ $root = DDTrace\root_span();
1919
2020// fresh trace: not from upstream
2121echo "same_as_upstream: " . ($ root ->traceId === "0000000000000000000000000000002a " ? "yes " : "no " ) . "\n" ;
22- echo "parent_id: " . $ root ->parentId . "\n" ;
22+ echo "parent_id: " . ( $ root ->parentId ?? 0 ) . "\n" ;
2323
2424// no span link (context discarded entirely)
2525echo "links_count: " . count ($ root ->links ) . "\n" ;
@@ -28,15 +28,10 @@ echo "links_count: " . count($root->links) . "\n";
2828$ headers = DDTrace \generate_distributed_tracing_headers (['baggage ' ]);
2929echo "baggage: " . ($ headers ['baggage ' ] ?? 'none ' ) . "\n" ;
3030
31- // upstream sampling priority not carried over
32- $ dd_headers = DDTrace \generate_distributed_tracing_headers (['datadog ' ]);
33- echo "sampling_priority: " . ($ dd_headers ['x-datadog-sampling-priority ' ] ?? 'none ' ) . "\n" ;
34-
3531DDTrace \close_span ();
3632?>
3733--EXPECT--
3834same_as_upstream: no
3935parent_id: 0
4036links_count: 0
4137baggage: none
42- sampling_priority: none
You can’t perform that action at this time.
0 commit comments