show logged in user as root span name
This commit is contained in:
parent
93bb473bce
commit
492c4eecfb
|
@ -51,7 +51,7 @@ class Tracer {
|
|||
|
||||
$context = TraceContextPropagator::getInstance()->extract(getallheaders());
|
||||
|
||||
$span = $this->tracer->spanBuilder('root')
|
||||
$span = $this->tracer->spanBuilder($_SESSION['name'] ?? 'not-logged-in')
|
||||
->setParent($context)
|
||||
->setSpanKind(SpanKind::KIND_SERVER)
|
||||
->setAttribute('php.request', json_encode($_REQUEST))
|
||||
|
|
Loading…
Reference in New Issue