Skip to content

Commit

Permalink
fix(aws-sdk): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaniv Davidi committed Jan 20, 2022
1 parent 00c29a5 commit d8c8b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ export class SnsServiceExtension implements ServiceExtension {
spanAttributes[SemanticAttributes.MESSAGING_DESTINATION] =
this.extractDestinationName(TopicArn, TargetArn, PhoneNumber);

spanName = `${PhoneNumber ? 'phone_number' : spanAttributes[SemanticAttributes.MESSAGING_DESTINATION]} send`;
spanName = `${
PhoneNumber
? 'phone_number'
: spanAttributes[SemanticAttributes.MESSAGING_DESTINATION]
} send`;
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ describe('SNS', () => {
.promise();

const publishSpans = getTestSpans().filter(
(s: ReadableSpan) => s.name === `phone_number send`
(s: ReadableSpan) => s.name === 'phone_number send'
);
expect(publishSpans.length).toBe(1);
const publishSpan = publishSpans[0];
Expand Down

0 comments on commit d8c8b86

Please sign in to comment.