Sha256: f6ef270851014eb7cba496e28f6179ca4db8a59972a74f69495f9ab50ed4c970

Contents?: true

Size: 324 Bytes

Versions: 16

Compression:

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

16 entries across 16 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.8.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.7.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.6.1 lib/datadog/core/environment/thread_count.rb
ddtrace-1.6.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.5.2 lib/datadog/core/environment/thread_count.rb
ddtrace-1.5.1 lib/datadog/core/environment/thread_count.rb
ddtrace-1.5.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.4.2 lib/datadog/core/environment/thread_count.rb
ddtrace-1.4.1 lib/datadog/core/environment/thread_count.rb
ddtrace-1.4.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.3.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.2.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.1.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.0.0 lib/datadog/core/environment/thread_count.rb
ddtrace-1.0.0.beta2 lib/datadog/core/environment/thread_count.rb