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 8aa2f41 commit 2af79d2Copy full SHA for 2af79d2
packages/instrumentation-aws-lambda/src/instrumentation.ts
@@ -61,6 +61,7 @@ import {
61
Callback,
62
Context,
63
Handler,
64
+ SQSRecord,
65
} from 'aws-lambda';
66
67
import { AwsLambdaInstrumentationConfig, EventContextExtractor } from './types';
@@ -295,7 +296,7 @@ export class AwsLambdaInstrumentation extends InstrumentationBase<AwsLambdaInstr
295
296
messages,
297
parentContext: trace.setSpan(otelContext.active(), span),
298
tracer: plugin.tracer,
- messageToSpanDetails: (message: any) => ({
299
+ messageToSpanDetails: (message: SQSRecord) => ({
300
name: queueName,
301
parentContext: propagation.extract(
302
ROOT_CONTEXT,
0 commit comments