Skip to content

Commit

Permalink
chore(aws-sdk): remove dependency on SQS type from JS SDK v2 (#2639)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jan 15, 2025
1 parent 3dfc7e3 commit bda9632
Showing 1 changed file with 4 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,9 @@ 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 bda9632

Please sign in to comment.