Skip to content

Commit f86b2ab

Browse files
committed
Fix unwinding of parameters
1 parent 77125f1 commit f86b2ab

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Codec/TextCodec.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ public function decode($data): ?SpanContext
1616
if (4 !== \count($elements)) {
1717
return null;
1818
}
19+
[$traceIdHigh, $traceIdLow] = $this->convertInt128($elements[0]);
1920

2021
return new SpanContext(
21-
...$this->convertInt128($elements[0]),
22-
$this->convertInt64($elements[1]),
23-
$this->convertInt64($elements[2]),
24-
$this->convertInt64($elements[3])
22+
$traceIdHigh,
23+
$traceIdLow,
24+
$this->convertInt64($elements[1]),
25+
$this->convertInt64($elements[2]),
26+
$this->convertInt64($elements[3])
2527
);
2628
}
2729

0 commit comments

Comments
 (0)