Sha256: dcaabd49942970c2ca14e9be4cd62fa180cf0ef74fc14da1a0c53f0bf48b303b

Contents?: true

Size: 1.49 KB

Versions: 17

Compression:

Stored size: 1.49 KB

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      module OpenSearch
        # OpenSearch integration constants
        # @public_api Changing resource names, tag names, or environment variables creates breaking changes.
        module Ext
          ENV_ENABLED = 'DD_TRACE_OPENSEARCH_ENABLED'
          ENV_SERVICE_NAME = 'DD_TRACE_OPENSEARCH_SERVICE_NAME'
          ENV_PEER_SERVICE = 'DD_TRACE_OPENSEARCH_PEER_SERVICE'
          # @!visibility private
          ENV_ANALYTICS_ENABLED = 'DD_TRACE_OPENSEARCH_ANALYTICS_ENABLED'
          ENV_ANALYTICS_SAMPLE_RATE = 'DD_TRACE_OPENSEARCH_ANALYTICS_SAMPLE_RATE'
          DEFAULT_PEER_SERVICE_NAME = 'opensearch'
          SPAN_QUERY = 'opensearch.query'
          SPAN_TYPE_QUERY = 'opensearch'
          TAG_COMPONENT = 'opensearch'
          TAG_SYSTEM = 'opensearch'
          TAG_METHOD = 'http.method'
          TAG_PATH = 'http.url_details.path'
          TAG_PARAMS = 'opensearch.params'
          TAG_BODY = 'opensearch.body'
          TAG_URL = 'http.url'
          TAG_HOST = 'http.url_details.host'
          TAG_PORT = 'http.url_details.port'
          TAG_SCHEME = 'http.url_details.scheme'
          TAG_RESPONSE_CONTENT_LENGTH = 'http.response.content_length'
          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

17 entries across 17 versions & 2 rubygems

Version Path
datadog-2.7.0 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.6.0 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.5.0 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.4.0 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.3.0 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.2.0 lib/datadog/tracing/contrib/opensearch/ext.rb
ddtrace-1.23.3 lib/datadog/tracing/contrib/opensearch/ext.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.1.0 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.0.0 lib/datadog/tracing/contrib/opensearch/ext.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/opensearch/ext.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/opensearch/ext.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/opensearch/ext.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/opensearch/ext.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/opensearch/ext.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/opensearch/ext.rb