Skip to content

Commit

Permalink
Capture URL with query string
Browse files Browse the repository at this point in the history
In case your APIs are using query string we'll now pass them as part of the URL and extract them on our side.
  • Loading branch information
cindreta committed Jul 21, 2022
1 parent 613fd35 commit f8a85ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middlewares/TreblleMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function terminate($request, $response)

$this->payload['data']['request']['user_agent'] = $request->server('HTTP_USER_AGENT');
$this->payload['data']['request']['ip'] = $request->ip();
$this->payload['data']['request']['url'] = $request->url();
$this->payload['data']['request']['url'] = $request->fullUrl();
$this->payload['data']['request']['method'] = $request->method();

$this->payload['data']['response']['load_time'] = $this->getLoadTime();
Expand Down

0 comments on commit f8a85ad

Please sign in to comment.