Skip to content

Commit 5799170

Browse files
committed
fix testGetSpanContextWithRemoteParent
1 parent b953744 commit 5799170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/OpenTelemetry/Integration/API/TracerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ public function testGetSpanContextWithRemoteParent(int $traceFlags, ?TraceState
589589
$this->assertSame($remoteContext->getSpanId(), $child->getParentContext()->getSpanId());
590590
$this->assertFalse($childContext->isRemote()); // "When creating children from remote spans, their IsRemote flag MUST be set to false."
591591
$this->assertEquals(1, $childContext->getTraceFlags()); // RECORD_AND_SAMPLED ==> 01 (AlwaysOn sampler)
592-
$this->assertSame('dd=p:0000000000000000;t.dm:-0' . ($traceState ? ",$traceState" : ""), (string)$childContext->getTraceState());
592+
$this->assertSame(sprintf("dd=p:%016X;t.dm:-0", $child->getContext()->getSpanID()) . ($traceState ? ",$traceState" : ""), (string)$childContext->getTraceState());
593593
});
594594

595595
$span = $traces[0][0];

0 commit comments

Comments
 (0)