Skip to content

Commit

Permalink
Merge pull request #70 from humanmade/handle-unset-amz-target
Browse files Browse the repository at this point in the history
Handle missing x-amz-target header
  • Loading branch information
roborourke authored Jun 22, 2020
2 parents b125ef1 + a151ce4 commit 557b9bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,8 @@ function on_aws_guzzle_request_stats( TransferStats $stats ) {
],
],
'aws' => [
'request_id' => $request_id ? $request_id[0] : null,
'operation' => explode( '.', $stats->getRequest()->getHeader( 'x-amz-target' )[0] )[1],
'request_id' => $request_id[0] ?? null,
'operation' => explode( '.', $stats->getRequest()->getHeader( 'x-amz-target' )[0] ?? 'xray.amz-unknown-target' )[1],
],
'in_progress' => false,
'fault' => $code > 499,
Expand Down

0 comments on commit 557b9bc

Please sign in to comment.