lib/water_drop/instrumentation.rb in waterdrop-2.0.4 vs lib/water_drop/instrumentation.rb in waterdrop-2.0.5

- old
+ new

@@ -1,7 +1,21 @@ # 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