Sha256: 1ebfaf9601434694e813a30b37f9ac25ea939024dedf14570b4fc2c776d1b112

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

# typed: true
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

6 entries across 6 versions & 1 rubygems

Version Path
ddtrace-1.0.0.beta1 lib/datadog/core/environment/thread_count.rb
ddtrace-0.54.2 lib/datadog/core/environment/thread_count.rb
ddtrace-0.54.1 lib/datadog/core/environment/thread_count.rb
ddtrace-0.54.0 lib/datadog/core/environment/thread_count.rb
ddtrace-0.53.0 lib/datadog/core/environment/thread_count.rb
ddtrace-0.52.0 lib/datadog/core/environment/thread_count.rb