fix previous

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

View File

@ -54,8 +54,8 @@ class Tracer {
$span = $this->tracer->spanBuilder($_SESSION['name'] ?? 'not-logged-in') $span = $this->tracer->spanBuilder($_SESSION['name'] ?? 'not-logged-in')
->setParent($context) ->setParent($context)
->setSpanKind(SpanKind::KIND_SERVER) ->setSpanKind(SpanKind::KIND_SERVER)
->setAttribute('php.request', json_encode($_REQUEST ?? [])) ->setAttribute('php.request', json_encode($_REQUEST))
->setAttribute('php.server', json_encode($_SERVER ?? [])) ->setAttribute('php.server', json_encode($_SERVER))
->setAttribute('php.session', json_encode($_SESSION ?? [])) ->setAttribute('php.session', json_encode($_SESSION ?? []))
->startSpan(); ->startSpan();