Skip to content

Commit

Permalink
fix(aws-sdk): import for SQS types
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Jan 7, 2025
1 parent 7c4c0de commit 07d9c02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 ?? {}
);
Expand Down

0 comments on commit 07d9c02

Please sign in to comment.