Class: Dynflow::TelemetryAdapters::Dummy

Inherits:
Abstract
  • Object
show all
Defined in:
lib/dynflow/telemetry_adapters/dummy.rb

Overview

Telemetry adapter which does not evaluate blocks passed to #with_instance.

Constant Summary

Constants inherited from Abstract

Abstract::DEFAULT_BUCKETS

Instance Method Summary collapse

Methods inherited from Abstract

#add_counter, #add_gauge, #add_histogram, #increment_counter, #observe_histogram, #set_gauge

Instance Method Details

#measure(_name, _tags = {}) ⇒ Object



14
15
16
17
# File 'lib/dynflow/telemetry_adapters/dummy.rb', line 14

def measure(_name, _tags = {})
  # Just call the block
  yield
end

#with_instanceObject

Does nothing with the block passed to it

Returns:

  • void



10
11
12
# File 'lib/dynflow/telemetry_adapters/dummy.rb', line 10

def with_instance
  # Do nothing
end