Skip to content

Commit

Permalink
fix(aws_sdk): rename 'send' operation to 'publish'
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-kazmierczak committed Sep 5, 2023
1 parent dc2a582 commit 72a437e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def span_kind(client_method)
def span_name(context, client_method)
case client_method
when SQS_SEND_MESSAGE, SQS_SEND_MESSAGE_BATCH, SNS_PUBLISH
"#{MessagingHelper.queue_name(context)} send"
"#{MessagingHelper.queue_name(context)} publish"
when SQS_RECEIVE_MESSAGE
"#{MessagingHelper.queue_name(context)} receive"
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
sns_client.publish message: 'msg', phone_number: '123456'

_(last_span.attributes['messaging.destination']).must_equal 'phone_number'
_(last_span.name).must_equal 'phone_number send'
_(last_span.name).must_equal 'phone_number publish'
end
end
end
Expand Down

0 comments on commit 72a437e

Please sign in to comment.