Skip to content

Commit 4686887

Browse files
authored
Fix TraceResponse format to match spec (#243)
1 parent a7c5e46 commit 4686887

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/TraceResponsePropagator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
*/
1818
final class TraceResponsePropagator implements ResponsePropagator
1919
{
20-
const IS_SAMPLED = '1';
21-
const NOT_SAMPLED = '0';
20+
const IS_SAMPLED = '01';
21+
const NOT_SAMPLED = '00';
2222
const SUPPORTED_VERSION = '00';
2323
const TRACERESPONSE = 'traceresponse';
2424

tests/Unit/PropagatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class PropagatorTest extends TestCase
1919
{
2020
private const TRACE_ID = '5759e988bd862e3fe1be46a994272793';
2121
private const SPAN_ID = '53995c3f42cd8ad8';
22-
private const TRACERESPONSE_HEADER_SAMPLED = '00-5759e988bd862e3fe1be46a994272793-53995c3f42cd8ad8-1';
23-
private const TRACERESPONSE_HEADER_NOT_SAMPLED = '00-5759e988bd862e3fe1be46a994272793-53995c3f42cd8ad8-0';
22+
private const TRACERESPONSE_HEADER_SAMPLED = '00-5759e988bd862e3fe1be46a994272793-53995c3f42cd8ad8-01';
23+
private const TRACERESPONSE_HEADER_NOT_SAMPLED = '00-5759e988bd862e3fe1be46a994272793-53995c3f42cd8ad8-00';
2424

2525
/**
2626
* @test

0 commit comments

Comments
 (0)