Sha256: 3ae8247949dfcb2c37346fca47891ff58a79f6a8e047ef7c93ea8f8731941d1e

Contents?: true

Size: 1.61 KB

Versions: 8

Compression:

Stored size: 1.61 KB

Contents

# frozen_string_literal: true

module Datadog
  module Profiling
    module Ext
      ENV_ENABLED = 'DD_PROFILING_ENABLED'
      ENV_UPLOAD_TIMEOUT = 'DD_PROFILING_UPLOAD_TIMEOUT'
      ENV_MAX_FRAMES = 'DD_PROFILING_MAX_FRAMES'
      ENV_AGENTLESS = 'DD_PROFILING_AGENTLESS'
      ENV_ENDPOINT_COLLECTION_ENABLED = 'DD_PROFILING_ENDPOINT_COLLECTION_ENABLED'

      # TODO: Consider removing this once the Ruby-based pprof encoding is removed and replaced by libdatadog
      module Pprof
        LABEL_KEY_LOCAL_ROOT_SPAN_ID = 'local root span id'
        LABEL_KEY_SPAN_ID = 'span id'
        LABEL_KEY_THREAD_ID = 'thread id'
        LABEL_KEY_TRACE_ENDPOINT = 'trace endpoint'
        SAMPLE_VALUE_NO_VALUE = 0
        VALUE_TYPE_CPU = 'cpu-time'
        VALUE_TYPE_WALL = 'wall-time'
        VALUE_UNIT_NANOSECONDS = 'nanoseconds'
      end

      module Transport
        module HTTP
          FORM_FIELD_TAG_ENV = 'env'
          FORM_FIELD_TAG_HOST = 'host'
          FORM_FIELD_TAG_LANGUAGE = 'language'
          FORM_FIELD_TAG_PID = 'process_id'
          FORM_FIELD_TAG_PROFILER_VERSION = 'profiler_version'
          FORM_FIELD_TAG_RUNTIME = 'runtime'
          FORM_FIELD_TAG_RUNTIME_ENGINE = 'runtime_engine'
          FORM_FIELD_TAG_RUNTIME_ID = 'runtime-id'
          FORM_FIELD_TAG_RUNTIME_PLATFORM = 'runtime_platform'
          FORM_FIELD_TAG_RUNTIME_VERSION = 'runtime_version'
          FORM_FIELD_TAG_SERVICE = 'service'
          FORM_FIELD_TAG_VERSION = 'version'

          PPROF_DEFAULT_FILENAME = 'rubyprofile.pprof'
          CODE_PROVENANCE_FILENAME = 'code-provenance.json'
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ddtrace-1.14.0 lib/datadog/profiling/ext.rb
ddtrace-1.13.1 lib/datadog/profiling/ext.rb
ddtrace-1.13.0 lib/datadog/profiling/ext.rb
ddtrace-1.12.1 lib/datadog/profiling/ext.rb
ddtrace-1.12.0 lib/datadog/profiling/ext.rb
ddtrace-1.11.1 lib/datadog/profiling/ext.rb
ddtrace-1.11.0 lib/datadog/profiling/ext.rb
ddtrace-1.11.0.beta1 lib/datadog/profiling/ext.rb