Sha256: c21d3d619cfda202c0d43b38ea223d3d7f65b2ecc8b6ddd1af60fff6d78a1299

Contents?: true

Size: 545 Bytes

Versions: 30

Compression:

Stored size: 545 Bytes

Contents

require 'ddtrace/ext/net'
require 'ddtrace/ext/redis'

module Datadog
  module Contrib
    module Redis
      # Tags handles generic common tags assignment.
      module Tags
        module_function

        def set_common_tags(client, span)
          span.set_tag Datadog::Ext::NET::TARGET_HOST, client.host
          span.set_tag Datadog::Ext::NET::TARGET_PORT, client.port
          span.set_tag Datadog::Ext::Redis::DB, client.db
          span.set_tag Datadog::Ext::Redis::RAW_COMMAND, span.resource
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ddtrace-0.11.4 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.11.3 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.12.0.beta2 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.12.0.beta1 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.11.2 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.11.1 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.11.0 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.11.0.beta2 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.11.0.beta1 lib/ddtrace/contrib/redis/tags.rb
ddtrace-0.10.0 lib/ddtrace/contrib/redis/tags.rb