Sha256: 0ae8db174e3716d0f77dbacf07694ac22c34b81dc1f879d087c2cd76e6870797

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

# typed: true

module Datadog
  module Tracing
    module Contrib
      module Pg
        # pg integration constants
        # @public_api Changing resource names, tag names, or environment variables creates breaking changes.
        module Ext
          ENV_ENABLED = 'DD_TRACE_PG_ENABLED'.freeze
          ENV_ANALYTICS_ENABLED = 'DD_TRACE_PG_ANALYTICS_ENABLED'.freeze
          ENV_ANALYTICS_SAMPLE_RATE = 'DD_TRACE_PG_ANALYTICS_SAMPLE_RATE'.freeze
          DEFAULT_PEER_SERVICE_NAME = 'pg'.freeze
          SPAN_EXEC = 'pg.exec'.freeze
          SPAN_EXEC_PARAMS = 'pg.exec.params'.freeze
          SPAN_EXEC_PREPARED = 'pg.exec.prepared'.freeze
          SPAN_ASYNC_EXEC = 'pg.async.exec'.freeze
          SPAN_ASYNC_EXEC_PARAMS = 'pg.async.exec.params'.freeze
          SPAN_ASYNC_EXEC_PREPARED = 'pg.async.exec.prepared'.freeze
          SPAN_SYNC_EXEC = 'pg.sync.exec'.freeze
          SPAN_SYNC_EXEC_PARAMS = 'pg.sync.exec.params'.freeze
          SPAN_SYNC_EXEC_PREPARED = 'pg.sync.exec.prepared'.freeze
          TAG_DB_NAME = 'pg.db.name'.freeze
          TAG_COMPONENT = 'pg'.freeze
          TAG_OPERATION_QUERY = 'query'.freeze

          TAG_SYSTEM = 'postgresql'.freeze
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-1.7.0 lib/datadog/tracing/contrib/pg/ext.rb
ddtrace-1.6.1 lib/datadog/tracing/contrib/pg/ext.rb
ddtrace-1.6.0 lib/datadog/tracing/contrib/pg/ext.rb