Sha256: 881825f1c04ece3123dd02c068ecbfe2bf70c7872c626dc4169aa71e33773daf

Contents?: true

Size: 847 Bytes

Versions: 6

Compression:

Stored size: 847 Bytes

Contents

require 'ddtrace/version'

module Datadog
  module Ext
    module Runtime
      # Identity
      LANG = 'ruby'.freeze
      LANG_INTERPRETER = begin
        if Gem::Version.new(RUBY_VERSION) > Gem::Version.new('1.9')
          (RUBY_ENGINE + '-' + RUBY_PLATFORM)
        else
          ('ruby-' + RUBY_PLATFORM)
        end
      end.freeze
      LANG_VERSION = RUBY_VERSION
      TRACER_VERSION = Datadog::VERSION::STRING

      TAG_LANG = 'language'.freeze
      TAG_RUNTIME_ID = 'runtime-id'.freeze

      # Metrics
      module Metrics
        ENV_ENABLED = 'DD_RUNTIME_METRICS_ENABLED'.freeze

        METRIC_CLASS_COUNT = 'runtime.ruby.class_count'.freeze
        METRIC_GC_PREFIX = 'runtime.ruby.gc'.freeze
        METRIC_THREAD_COUNT = 'runtime.ruby.thread_count'.freeze

        TAG_SERVICE = 'service'.freeze
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ddtrace-0.24.0 lib/ddtrace/ext/runtime.rb
ddtrace-0.23.3 lib/ddtrace/ext/runtime.rb
ddtrace-0.23.2 lib/ddtrace/ext/runtime.rb
ddtrace-0.23.1 lib/ddtrace/ext/runtime.rb
ddtrace-0.23.0 lib/ddtrace/ext/runtime.rb
ddtrace-0.22.0 lib/ddtrace/ext/runtime.rb