File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ public static function register(): void
4242 $ builder = $ instrumentation ->tracer ()
4343 ->spanBuilder (sprintf ('HTTP %s ' , $ request ?->method() ?? 'unknown ' ))
4444 ->setSpanKind (SpanKind::KIND_SERVER )
45- ->setAttribute (' code.function ' , $ function )
46- ->setAttribute (' code.namespace ' , $ class )
47- ->setAttribute (' code.filepath ' , $ filename )
48- ->setAttribute (' code.lineno ' , $ lineno );
45+ ->setAttribute (TraceAttributes:: CODE_FUNCTION , $ function )
46+ ->setAttribute (TraceAttributes:: CODE_NAMESPACE , $ class )
47+ ->setAttribute (TraceAttributes:: CODE_FILEPATH , $ filename )
48+ ->setAttribute (TraceAttributes:: CODE_LINENO , $ lineno );
4949 $ parent = Context::getCurrent ();
5050 if ($ request ) {
5151 $ parent = Globals::propagator ()->extract ($ request , HeadersPropagator::instance ());
You can’t perform that action at this time.
0 commit comments