Module: ElasticAPM::Metrics Private

Defined in:
lib/elastic_apm/metrics.rb,
lib/elastic_apm/metrics/set.rb,
lib/elastic_apm/metrics/metric.rb,
lib/elastic_apm/metrics/vm_set.rb,
lib/elastic_apm/metrics/jvm_set.rb,
lib/elastic_apm/metrics/cpu_mem_set.rb,
lib/elastic_apm/metrics/breakdown_set.rb,
lib/elastic_apm/metrics/span_scoped_set.rb,
lib/elastic_apm/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/elastic_apm/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/elastic_apm/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/elastic_apm/metrics.rb', line 27

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