Skip to content

Commit 58d3a93

Browse files
authored
Merge pull request #440 from carolabadeer/fix-php-custom-attributes-code-snippet
Fix span variable name in PHP "Adding Custom Attributes" code snippet
2 parents d85d09d + 37721fc commit 58d3a93

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)