File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/Instrumentation/Laravel/src/Watchers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ public function recordRequest(RequestSending $request): void
5858 ->setAttributes ([
5959 TraceAttributes::HTTP_REQUEST_METHOD => $ request ->request ->method (),
6060 TraceAttributes::URL_FULL => $ processedUrl ,
61- TraceAttributes::URL_PATH => $ parsedUrl ['path ' ] ?? '' ,
62- TraceAttributes::URL_SCHEME => $ parsedUrl ['scheme ' ] ?? '' ,
63- TraceAttributes::SERVER_ADDRESS => $ parsedUrl ['host ' ] ?? '' ,
64- TraceAttributes::SERVER_PORT => $ parsedUrl ['port ' ] ?? '' ,
61+ TraceAttributes::URL_PATH => $ parsedUrl ['path ' ] ?? null ,
62+ TraceAttributes::URL_SCHEME => $ parsedUrl ['scheme ' ] ?? null ,
63+ TraceAttributes::SERVER_ADDRESS => $ parsedUrl ['host ' ] ?? null ,
64+ TraceAttributes::SERVER_PORT => $ parsedUrl ['port ' ] ?? null ,
6565 ])
6666 ->startSpan ();
6767 $ this ->spans [$ this ->createRequestComparisonHash ($ request ->request )] = $ span ;
You can’t perform that action at this time.
0 commit comments