Skip to content

Commit 9c0a97e

Browse files
authored
fix(laravel): Use Request::header instead of Request::get (#163)
Signed-off-by: Natsuki Ikeguchi <[email protected]>
1 parent eff38d7 commit 9c0a97e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LaravelInstrumentation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function register(): void
5454
->setParent($parent)
5555
->setAttribute(TraceAttributes::HTTP_URL, $request->fullUrl())
5656
->setAttribute(TraceAttributes::HTTP_METHOD, $request->method())
57-
->setAttribute(TraceAttributes::HTTP_REQUEST_CONTENT_LENGTH, $request->get('Content-Length'))
57+
->setAttribute(TraceAttributes::HTTP_REQUEST_CONTENT_LENGTH, $request->header('Content-Length'))
5858
->setAttribute(TraceAttributes::HTTP_SCHEME, $request->getScheme())
5959
->setAttribute(TraceAttributes::HTTP_FLAVOR, $request->getProtocolVersion())
6060
->setAttribute(TraceAttributes::HTTP_CLIENT_IP, $request->ip())

0 commit comments

Comments
 (0)