Class: Datadog::Tracing::Contrib::Aws::Service::SQS

Inherits:
Base
  • Object
show all
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 add_tags(span, params)
  queue_url = params[:queue_url]
  queue_name = params[:queue_name]
  if queue_url
    _, _, _, , queue_name = queue_url.split('/')
    span.set_tag(Aws::Ext::TAG_AWS_ACCOUNT, )
  end
  span.set_tag(Aws::Ext::TAG_QUEUE_NAME, queue_name)
end