Module: Datadog::CI::Utils::Telemetry
- Defined in:
- lib/datadog/ci/utils/telemetry.rb
Class Method Summary collapse
- .distribution(metric_name, value, tags = {}) ⇒ Object
- .inc(metric_name, count, tags = {}) ⇒ Object
- .telemetry ⇒ Object
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, = {}) telemetry.distribution(Ext::Telemetry::NAMESPACE, metric_name, value, 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, = {}) telemetry.inc(Ext::Telemetry::NAMESPACE, metric_name, count, tags: ) end |
.telemetry ⇒ Object
17 18 19 |
# File 'lib/datadog/ci/utils/telemetry.rb', line 17 def self.telemetry Datadog.send(:components).telemetry end |