From cf18bc576e73e5b870134296783d81f7c4e0f7aa Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 21 Oct 2023 10:25:03 +0300 Subject: [PATCH] fix previous --- classes/tracer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/tracer.php b/classes/tracer.php index 4e8c383d6..e46824f09 100644 --- a/classes/tracer.php +++ b/classes/tracer.php @@ -54,8 +54,8 @@ class Tracer { $span = $this->tracer->spanBuilder($_SESSION['name'] ?? 'not-logged-in') ->setParent($context) ->setSpanKind(SpanKind::KIND_SERVER) - ->setAttribute('php.request', json_encode($_REQUEST ?? [])) - ->setAttribute('php.server', json_encode($_SERVER ?? [])) + ->setAttribute('php.request', json_encode($_REQUEST)) + ->setAttribute('php.server', json_encode($_SERVER)) ->setAttribute('php.session', json_encode($_SESSION ?? [])) ->startSpan();