Skip to content

Commit 9268d46

Browse files
committed
Fix span variable name in PHP - Adding Custom Attributes code snippet
1 parent 9436089 commit 9268d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docs/getting-started/php-sdk/trace-manual-instr.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ $span = $tracer
220220
->spanBuilder('span')
221221
->startSpan();
222222

223-
$spanScope = $root->activate();
223+
$spanScope = $span->activate();
224224

225225
$span->setAttributes(["a" => "1"]);
226226

0 commit comments

Comments
 (0)