From 07d9c029865b9f719047915b5fce17190afe9bdf Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:33:42 -0800 Subject: [PATCH] fix(aws-sdk): import for SQS types --- .../opentelemetry-instrumentation-aws-sdk/src/services/sqs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/node/opentelemetry-instrumentation-aws-sdk/src/services/sqs.ts b/plugins/node/opentelemetry-instrumentation-aws-sdk/src/services/sqs.ts index 07cedaa25d..c64a2e4f0a 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-sdk/src/services/sqs.ts +++ b/plugins/node/opentelemetry-instrumentation-aws-sdk/src/services/sqs.ts @@ -25,7 +25,7 @@ import { } from '@opentelemetry/api'; import { pubsubPropagation } from '@opentelemetry/propagation-utils'; import { RequestMetadata, ServiceExtension } from './ServiceExtension'; -import type { SQS } from 'aws-sdk'; +import type { SQS } from '../aws-sdk.types'; import { AwsSdkInstrumentationConfig, NormalizedRequest, @@ -119,7 +119,7 @@ export class SqsServiceExtension implements ServiceExtension { const entries = request.commandInput?.Entries; if (Array.isArray(entries)) { entries.forEach( - (messageParams: SQS.SendMessageBatchRequestEntry) => { + (messageParams: { MessageAttributes: SQS.MessageBodyAttributeMap }) => { messageParams.MessageAttributes = injectPropagationContext( messageParams.MessageAttributes ?? {} );