Module: Datadog::CI::Utils::Telemetry

Defined in:
lib/datadog/ci/utils/telemetry.rb

Class Method Summary collapse

Class Method Details

.distribution(metric_name, value, tags = {}) ⇒ Object



13
14
15
# File 'lib/datadog/ci/utils/telemetry.rb', line 13

def self.distribution(metric_name, value, tags = {})
  telemetry.distribution(Ext::Telemetry::NAMESPACE, metric_name, value, tags: tags)
end

.inc(metric_name, count, tags = {}) ⇒ Object



9
10
11
# File 'lib/datadog/ci/utils/telemetry.rb', line 9

def self.inc(metric_name, count, tags = {})
  telemetry.inc(Ext::Telemetry::NAMESPACE, metric_name, count, tags: tags)
end

.telemetryObject



17
18
19
# File 'lib/datadog/ci/utils/telemetry.rb', line 17

def self.telemetry
  Datadog.send(:components).telemetry
end