We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af3ef72 commit 412de1fCopy full SHA for 412de1f
packages/instrumentation-aws-lambda/src/instrumentation.ts
@@ -287,7 +287,7 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
287
}
288
289
return otelContext.with(trace.setSpan(parent, span), () => {
290
- if (event.Records) {
+ if (event.Records && event.Records[0].eventSource === 'aws:sqs') {
291
const messages = event.Records;
292
const queueArn = messages[0]?.eventSourceARN;
293
const queueName = queueArn?.split(':').pop() ?? 'unknown';
0 commit comments