@@ -63,7 +63,7 @@ public static function register(): void
6363 pre: static function (Bootstrap $ bootstrap , array $ params , string $ class , string $ function , ?string $ filename , ?int $ lineno ) use ($ instrumentation ) {
6464 $ exception = $ params [0 ] instanceof Throwable ? $ params [0 ] : null ;
6565 $ span = $ instrumentation ->tracer ()
66- ->spanBuilder ('Bootstrap:: terminate ' )
66+ ->spanBuilder ('bootstrap. terminate ' )
6767 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
6868 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
6969 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
@@ -182,7 +182,7 @@ public static function register(): void
182182 'dispatch ' ,
183183 pre: static function (FrontController $ frontController , array $ params , string $ class , string $ function , ?string $ filename , ?int $ lineno ) use ($ instrumentation ) {
184184 $ span = $ instrumentation ->tracer ()
185- ->spanBuilder ('FrontController .dispatch ' )
185+ ->spanBuilder ('frontController .dispatch ' )
186186 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
187187 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
188188 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
@@ -214,7 +214,7 @@ public static function register(): void
214214 /** @var non-empty-string $actionName */
215215 $ actionName = $ request ?->getFullActionName() ?? 'unknown ' ;
216216 $ span = $ instrumentation ->tracer ()
217- ->spanBuilder ($ actionName )
217+ ->spanBuilder (' action.dispatch ' . $ actionName )
218218 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
219219 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
220220 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
@@ -242,7 +242,7 @@ public static function register(): void
242242 'execute ' ,
243243 pre: static function (ActionInterface $ actionInterface , array $ params , string $ class , string $ function , ?string $ filename , ?int $ lineno ) use ($ instrumentation ) {
244244 $ span = $ instrumentation ->tracer ()
245- ->spanBuilder ('ActionInterface .execute ' )
245+ ->spanBuilder ('actionInterface .execute ' )
246246 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
247247 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
248248 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
@@ -268,9 +268,9 @@ public static function register(): void
268268 Manager::class,
269269 'dispatch ' ,
270270 pre: static function (Manager $ manager , array $ params , string $ class , string $ function , ?string $ filename , ?int $ lineno ) use ($ instrumentation ) {
271- $ eventName = ( string ) ( $ params [0 ]) ;
271+ $ eventName = is_string ( $ params [ 0 ]) && $ params [0 ] !== '' ? $ params [ 0 ] : ' unknown ' ;
272272 $ span = $ instrumentation ->tracer ()
273- ->spanBuilder ('EVENT: ' . $ eventName )
273+ ->spanBuilder ('event.dispatch ' . $ eventName )
274274 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
275275 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
276276 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
@@ -297,7 +297,7 @@ public static function register(): void
297297 ? $ configuration ['name ' ]
298298 : 'unknown ' ;
299299 $ span = $ instrumentation ->tracer ()
300- ->spanBuilder ('OBSERVER: ' . $ observerName )
300+ ->spanBuilder ('observer ' . $ observerName )
301301 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
302302 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
303303 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
@@ -321,7 +321,7 @@ public static function register(): void
321321 pre: static function (Template $ template , array $ params , string $ class , string $ function , ?string $ filename , ?int $ lineno ) use ($ instrumentation ) {
322322 $ filename = is_string ($ params [0 ]) ? $ params [0 ] : null ;
323323 $ span = $ instrumentation ->tracer ()
324- ->spanBuilder ('TEMPLATE: ' . ($ filename ?? 'unknown ' ))
324+ ->spanBuilder ('template ' . ($ filename ?? 'unknown ' ))
325325 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
326326 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
327327 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
@@ -348,7 +348,7 @@ public static function register(): void
348348 'renderLayout ' ,
349349 pre: static function (View $ view , array $ params , string $ class , string $ function , ?string $ filename , ?int $ lineno ) use ($ instrumentation ) {
350350 $ span = $ instrumentation ->tracer ()
351- ->spanBuilder ('LAYOUT: layout_render ' )
351+ ->spanBuilder ('view.render.layout ' )
352352 ->setAttribute (CodeAttributes::CODE_FUNCTION_NAME , sprintf ('%s::%s ' , $ class , $ function ))
353353 ->setAttribute (CodeAttributes::CODE_FILE_PATH , $ filename )
354354 ->setAttribute (CodeAttributes::CODE_LINE_NUMBER , $ lineno )
0 commit comments