Sha256: c078e193f213f0cf9a5025d11d11bb09f5817f9f645f095322d5acda93fc4087

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 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

      # 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.26.1 lib/ddtrace/ext/runtime.rb
ddtrace-0.28.0 lib/ddtrace/ext/runtime.rb
ddtrace-0.27.0 lib/ddtrace/ext/runtime.rb
ddtrace-0.26.0 lib/ddtrace/ext/runtime.rb
ddtrace-0.25.1 lib/ddtrace/ext/runtime.rb
ddtrace-0.25.0 lib/ddtrace/ext/runtime.rb