Skip to content

Commit

Permalink
Update instrumentation/aws-lambda/aws-lambda-events-2.2/library/src/m…
Browse files Browse the repository at this point in the history
…ain/java/io/opentelemetry/instrumentation/awslambdaevents/v2_2/internal/AwsLambdaSqsInstrumenterFactory.java

Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
  • Loading branch information
breedx-splk and trask authored Oct 19, 2023
1 parent aeecf06 commit b7bdd12
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static Instrumenter<SQSMessage, Void> forMessage(OpenTelemetry openTeleme
private static String spanName(SQSEvent event) {
String source = "multiple_sources";
List<SQSMessage> records = event.getRecords();
if ((records != null) && !records.isEmpty()) {
if (records != null && !records.isEmpty()) {
String messageSource = records.get(0).getEventSource();
for (int i = 1; i < records.size(); i++) {
SQSMessage message = records.get(i);
Expand Down

0 comments on commit b7bdd12

Please sign in to comment.