Skip to content

Commit

Permalink
改进
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Aug 11, 2023
1 parent 723d535 commit f978e47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/middleware/TraceRequests.php
Original file line number Diff line number Diff line change
@@ -37,9 +37,10 @@ public function handle($request, Closure $next)
[
'child_of' => $context,
'tags' => [
HTTP_METHOD => $request->method(),
HTTP_URL => $request->url(true),
'http.ip' => $request->ip(),
HTTP_METHOD => $request->method(),
HTTP_URL => $request->baseUrl(true),
'http.ip' => $request->ip(),
'http.params' => json_encode($request->param()),
],
]
);

0 comments on commit f978e47

Please # to comment.