Sha256: b5827e07f87e6dc167d78982e94e211db7f49af6c0b60a149fa990f99effcb95

Contents?: true

Size: 1.31 KB

Versions: 10

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      module Elasticsearch
        # Elasticsearch integration constants
        # @public_api Changing resource names, tag names, or environment variables creates breaking changes.
        module Ext
          ENV_ENABLED = 'DD_TRACE_ELASTICSEARCH_ENABLED'
          ENV_SERVICE_NAME = 'DD_TRACE_ELASTICSEARCH_SERVICE_NAME'
          ENV_PEER_SERVICE = 'DD_TRACE_ELASTICSEARCH_PEER_SERVICE'
          ENV_ANALYTICS_ENABLED = 'DD_TRACE_ELASTICSEARCH_ANALYTICS_ENABLED'
          ENV_ANALYTICS_SAMPLE_RATE = 'DD_TRACE_ELASTICSEARCH_ANALYTICS_SAMPLE_RATE'
          DEFAULT_PEER_SERVICE_NAME = 'elasticsearch'
          SPAN_QUERY = 'elasticsearch.query'
          SPAN_TYPE_QUERY = 'elasticsearch'
          TAG_BODY = 'elasticsearch.body'
          TAG_METHOD = 'elasticsearch.method'
          TAG_PARAMS = 'elasticsearch.params'
          TAG_URL = 'elasticsearch.url'
          TAG_COMPONENT = 'elasticsearch'
          TAG_OPERATION_QUERY = 'query'
          TAG_SYSTEM = 'elasticsearch'
          PEER_SERVICE_SOURCES = Array[
            Tracing::Metadata::Ext::TAG_PEER_HOSTNAME,
            Tracing::Metadata::Ext::NET::TAG_DESTINATION_NAME,
            Tracing::Metadata::Ext::NET::TAG_TARGET_HOST,].freeze
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ddtrace-1.19.0 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/elasticsearch/ext.rb
ddtrace-1.13.0 lib/datadog/tracing/contrib/elasticsearch/ext.rb