File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public static function register(): void
3636 /** @psalm-suppress ArgumentTypeCoercion */
3737 $ builder = $ instrumentation
3838 ->tracer ()
39- ->spanBuilder (\sprintf ('HTTP %s ' , $ params [0 ]))
39+ ->spanBuilder (\sprintf ('%s ' , $ params [0 ]))
4040 ->setSpanKind (SpanKind::KIND_CLIENT )
4141 ->setAttribute (TraceAttributes::URL_FULL , (string ) $ params [1 ])
4242 ->setAttribute (TraceAttributes::HTTP_REQUEST_METHOD , $ params [0 ])
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public static function register(): void
4040 /** @psalm-suppress ArgumentTypeCoercion */
4141 $ builder = $ instrumentation
4242 ->tracer ()
43- ->spanBuilder (\sprintf ('HTTP %s ' , $ request ?->getMethod() ?? 'unknown ' ))
43+ ->spanBuilder (\sprintf ('%s ' , $ request ?->getMethod() ?? 'unknown ' ))
4444 ->setSpanKind (SpanKind::KIND_SERVER )
4545 ->setAttribute (TraceAttributes::CODE_FUNCTION , $ function )
4646 ->setAttribute (TraceAttributes::CODE_NAMESPACE , $ class )
@@ -56,6 +56,7 @@ public static function register(): void
5656 ->setAttribute (TraceAttributes::HTTP_REQUEST_METHOD , $ request ->getMethod ())
5757 ->setAttribute (TraceAttributes::HTTP_REQUEST_BODY_SIZE , $ request ->headers ->get ('Content-Length ' ))
5858 ->setAttribute (TraceAttributes::URL_SCHEME , $ request ->getScheme ())
59+ ->setAttribute (TraceAttributes::URL_PATH , $ request ->getPathInfo ())
5960 ->startSpan ();
6061 $ request ->attributes ->set (SpanInterface::class, $ span );
6162 } else {
You can’t perform that action at this time.
0 commit comments