Sha256: 93432129ac50fdd4bc6f6cdc1f73d050be1fafb5e2c5e6e145b87fa701445d92

Contents?: true

Size: 1.86 KB

Versions: 19

Compression:

Stored size: 1.86 KB

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      # Contrib specific constants
      module Ext
        # @public_api
        module DB
          TAG_INSTANCE = 'db.instance'
          TAG_USER = 'db.user'
          TAG_SYSTEM = 'db.system'
          TAG_STATEMENT = 'db.statement'
          TAG_ROW_COUNT = 'db.row_count'
          PEER_SERVICE_SOURCES = Array[TAG_INSTANCE,
            Tracing::Metadata::Ext::NET::TAG_DESTINATION_NAME,
            Tracing::Metadata::Ext::TAG_PEER_HOSTNAME,
            Tracing::Metadata::Ext::NET::TAG_TARGET_HOST,].freeze
        end

        module RPC
          TAG_SYSTEM = 'rpc.system'
          TAG_SERVICE = 'rpc.service'
          TAG_METHOD = 'rpc.method'
          PEER_SERVICE_SOURCES = Array[TAG_SERVICE,
            Tracing::Metadata::Ext::NET::TAG_DESTINATION_NAME,
            Tracing::Metadata::Ext::TAG_PEER_HOSTNAME,
            Tracing::Metadata::Ext::NET::TAG_TARGET_HOST,].freeze
          module GRPC
            TAG_STATUS_CODE = 'rpc.grpc.status_code'
            TAG_FULL_METHOD = 'rpc.grpc.full_method'
          end
        end

        module Messaging
          TAG_SYSTEM = 'messaging.system'
          PEER_SERVICE_SOURCES = Array[Tracing::Metadata::Ext::NET::TAG_DESTINATION_NAME,
            Tracing::Metadata::Ext::TAG_PEER_HOSTNAME,
            Tracing::Metadata::Ext::NET::TAG_TARGET_HOST,].freeze
        end

        module Metadata
          # Name of tag from which where peer.service information was extracted from
          TAG_PEER_SERVICE_SOURCE = '_dd.peer.service.source'

          # Value of tag from which peer.service value was remapped from
          TAG_PEER_SERVICE_REMAP = '_dd.peer.service.remapped_from'

          # Set equal to the global service when contrib span.service is overriden
          TAG_BASE_SERVICE = '_dd.base_service'
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
datadog-2.2.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.23.3 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/ext.rb
datadog-2.1.0 lib/datadog/tracing/contrib/ext.rb
datadog-2.0.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/ext.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/ext.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.19.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/ext.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/ext.rb