Class: Datadog::Tracing::Contrib::Aws::Service::SQS
- Defined in:
- lib/datadog/tracing/contrib/aws/service/sqs.rb
Overview
SQS tag handlers.
Instance Method Summary collapse
Instance Method Details
#add_tags(span, params) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/datadog/tracing/contrib/aws/service/sqs.rb', line 13 def (span, params) queue_url = params[:queue_url] queue_name = params[:queue_name] if queue_url _, _, _, aws_account, queue_name = queue_url.split('/') span.set_tag(Aws::Ext::TAG_AWS_ACCOUNT, aws_account) end span.set_tag(Aws::Ext::TAG_QUEUE_NAME, queue_name) end |