Sha256: 59c190236b317f1bf94f832da9588ee90d3440749821f477ee39e2e2c29ec3b9

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true

module WaterDrop
  # Namespace for all the things related with WaterDrop instrumentation process
  # @note We do not
  module Instrumentation
    class << self
      # Builds a manager for statistics callbacks
      # @return [WaterDrop::CallbacksManager]
      def statistics_callbacks
        @statistics_callbacks ||= CallbacksManager.new
      end

      # Builds a manager for error callbacks
      # @return [WaterDrop::CallbacksManager]
      def error_callbacks
        @error_callbacks ||= CallbacksManager.new
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waterdrop-2.0.5 lib/water_drop/instrumentation.rb