Sha256: dcc62cab2d4d43827462838a5504f39062c2af5eb6ced9f20666df91d1cc3081

Contents?: true

Size: 684 Bytes

Versions: 31

Compression:

Stored size: 684 Bytes

Contents

# frozen_string_literal: true

require_relative './base'
require_relative '../ext'

module Datadog
  module Tracing
    module Contrib
      module Aws
        module Service
          # SQS tag handlers.
          class SQS < Base
            def add_tags(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
          end
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.8.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.7.1 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.7.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.6.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.5.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.4.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.3.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.2.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
ddtrace-1.23.3 lib/datadog/tracing/contrib/aws/service/sqs.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.1.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.0.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/aws/service/sqs.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/aws/service/sqs.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/aws/service/sqs.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/aws/service/sqs.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/aws/service/sqs.rb