cosmetic fix for root span name

This commit is contained in:
Andrew Dolgov 2023-10-21 10:25:29 +03:00
parent cf18bc576e
commit 2b61052e87
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class Tracer {
$context = TraceContextPropagator::getInstance()->extract(getallheaders());
$span = $this->tracer->spanBuilder($_SESSION['name'] ?? 'not-logged-in')
$span = $this->tracer->spanBuilder($_SESSION['name'] ?? 'not logged in')
->setParent($context)
->setSpanKind(SpanKind::KIND_SERVER)
->setAttribute('php.request', json_encode($_REQUEST))