Module: DegicaDatadog

Defined in:
lib/degica_datadog.rb

Defined Under Namespace

Classes: Error

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Lightweight configuration for Datadog metrics

Yields:

  • (_self)

Yield Parameters:

  • _self (DegicaDatadog)

    the object that the method was called on



7
8
9
10
# File 'lib/degica_datadog.rb', line 7

def self.configure
  yield self if block_given?
  puts "DegicaDatadog: Configured monitoring interface." if ENV['DEBUG']
end

.increment(metric, tags: []) ⇒ Object

Metric dispatch interface



13
14
15
16
# File 'lib/degica_datadog.rb', line 13

def self.increment(metric, tags: [])
  # Interface for internal microservices
  # Actual implementation resides in the infra-core layer
end