Sha256: 9d0964de9bbad6ff75b063c237708f46136f68ca14381a8299a294b24fa5e754

Contents?: true

Size: 309 Bytes

Versions: 4

Compression:

Stored size: 309 Bytes

Contents

module Datadog
  module Core
    module Environment
      # Retrieves number of threads from runtime
      module ThreadCount
        module_function

        def value
          Thread.list.count
        end

        def available?
          Thread.respond_to?(:list)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-1.10.1 lib/datadog/core/environment/thread_count.rb
ddtrace-1.10.0 lib/datadog/core/environment/thread_count.rb
ddtrace-0.51.1 lib/datadog/core/environment/thread_count.rb
ddtrace-0.51.0 lib/datadog/core/environment/thread_count.rb