Skip to content

Commit

Permalink
Merge branch 'feat/sqs_instrumentation' of github.com:newrelic/newrel…
Browse files Browse the repository at this point in the history
…ic-php-agent into feat/sqs_instrumentation
  • Loading branch information
zsistla committed Jan 10, 2025
2 parents e27135a + c309f48 commit 810949d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agent/lib_aws_sdk_php.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
),
));
$result = $client->sendMessageBatch(array(
// QueueUrl is required
'QueueUrl' => 'string',
Expand Down Expand Up @@ -388,9 +387,10 @@ NR_PHP_WRAPPER(nr_aws_client_call) {

if (NR_SEGMENT_CUSTOM == auto_segment->type) {
/*
* It wasn't set to any of the segments that would autoclose the segment so
* we need to end the segment that we started in the before wrapper to
* handle external,datastore,message segments
* We need to end the segment that we started in the 'before' wrapper if it
* wasn't handled and ended by the handling function. Handling function would
* have changed the segment type from from default (`NR_SEGMENT_CUSTOM`) if it
* ended it.
*/
nr_segment_discard(&auto_segment);
}
Expand Down

0 comments on commit 810949d

Please sign in to comment.