Module: Atatus::Metrics Private

Defined in:
lib/atatus/metrics.rb,
lib/atatus/metrics/set.rb,
lib/atatus/metrics/metric.rb,
lib/atatus/metrics/vm_set.rb,
lib/atatus/metrics/jvm_set.rb,
lib/atatus/metrics/cpu_mem_set.rb,
lib/atatus/metrics/breakdown_set.rb,
lib/atatus/metrics/span_scoped_set.rb,
lib/atatus/metrics/transaction_set.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: BreakdownSet, Counter, CpuMemSet, Gauge, JVMSet, Metric, NoopMetric, Registry, Set, SpanScopedSet, Timer, TransactionSet, VMSet

Constant Summary collapse

NOOP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

NoopMetric.new

Class Method Summary collapse

Class Method Details

.new(config, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



23
24
25
# File 'lib/atatus/metrics.rb', line 23

def self.new(config, &block)
  Registry.new(config, &block)
end

.osObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



31
32
33
# File 'lib/atatus/metrics.rb', line 31

def self.os
  @os ||= RbConfig::CONFIG.fetch('host_os', 'unknown').to_sym
end

.platformObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



27
28
29
# File 'lib/atatus/metrics.rb', line 27

def self.platform
  @platform ||= Gem::Platform.local.os.to_sym
end