Skip to content

Commit

Permalink
Use the passed requestId option inside the options array
Browse files Browse the repository at this point in the history
  • Loading branch information
Hectorhammett committed Nov 21, 2024
1 parent b0dc724 commit ef1425a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpHandler/Guzzle6HttpHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __invoke(RequestInterface $request, array $options = [])
$requestEvent->retryAttempt = $options['retryAttempt'] ?? null;
$requestEvent->serviceName = $options['serviceName'] ?? null;
$requestEvent->clientId = spl_object_id($this->client);
$requestEvent->requestId = spl_object_id($request);
$requestEvent->requestId = $options['requestId'] ?? spl_object_id($request);

$this->logRequest($requestEvent);
}
Expand Down

0 comments on commit ef1425a

Please sign in to comment.