Sha256: 9269150356667cc2193ea3ebfba3da1fa2f2ae71b12a233fbc6a843e0e2efdd2

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

# frozen_string_literal: true

module Dynflow
  module TelemetryAdapters
    # Telemetry adapter which does not evaluate blocks passed to {#with_instance}.
    class Dummy < Abstract
      # Does nothing with the block passed to it
      #
      # @return void
      def with_instance
        # Do nothing
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dynflow-1.9.0 lib/dynflow/telemetry_adapters/dummy.rb
dynflow-1.8.3 lib/dynflow/telemetry_adapters/dummy.rb