Skip to content

Commit

Permalink
Update apm-agent-plugins/apm-awslambda-plugin/src/main/java/co/elasti…
Browse files Browse the repository at this point in the history
…c/apm/agent/awslambda/helper/S3TransactionHelper.java

Co-authored-by: Jonas Kunz <[email protected]>
  • Loading branch information
videnkz and JonasKunz authored Oct 18, 2023
1 parent 88411a8 commit 04baefd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ protected void setTransactionTriggerData(Transaction transaction, S3Event s3Even

transaction.withOtelAttribute("aws.s3.bucket", bucket.getName());
}
if (null != s3NotificationRecord.getS3().getObject()) {
final S3EventNotification.S3ObjectEntity object = s3NotificationRecord.getS3().getObject();
S3EventNotification.S3ObjectEntity object = s3NotificationRecord.getS3().getObject();
if (null != object) {
transaction.withOtelAttribute("aws.s3.key", object.getKey());
}
}
Expand Down

0 comments on commit 04baefd

Please sign in to comment.