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 ee28e44 commit 39a8908Copy full SHA for 39a8908
packages/instrumentation-aws-lambda/src/instrumentation.ts
@@ -59,6 +59,7 @@ import {
59
Callback,
60
Context,
61
Handler,
62
+ SQSRecord,
63
StreamifyHandler,
64
} from 'aws-lambda';
65
@@ -326,7 +327,7 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
326
327
messages,
328
parentContext: trace.setSpan(otelContext.active(), span),
329
tracer: plugin.tracer,
- messageToSpanDetails: (message: any) => ({
330
+ messageToSpanDetails: (message: SQSRecord) => ({
331
name: queueName,
332
parentContext: propagation.extract(
333
ROOT_CONTEXT,
0 commit comments