Skip to content

Commit 8a2dcd6

Browse files
committed
Identifiers from string README.md
1 parent 801715b commit 8a2dcd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ $tracer = new Tracer(
4848
```
4949
For back-end applications / microservices (Consumer of existing TraceId, SpanId and Sampled)
5050
```php
51+
// before that check these 3 headers are set (ie. !empty($_SERVER['HTTP_X_B3_SAMPLED']) x3)
5152
$sampled = $_SERVER['HTTP_X_B3_SAMPLED']; // Remember to escape data :)
5253
$traceId = new TraceIdentifier($_SERVER['HTTP_X_B3_TRACEID']); // Set from header (if failed generate new)
5354
$traceSpanId = new SpanIdentifier($_SERVER['HTTP_X_B3_SPANID']); // Set from header (if failed generate new)

0 commit comments

Comments
 (0)