Sha256: 004f48600116ae5e2ea49a745ef90262e9f7ec15df08bb1367649a386fdf434f

Contents?: true

Size: 891 Bytes

Versions: 14

Compression:

Stored size: 891 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Core
    # All the instrumentation shared across Karafka ecosystem
    module Instrumentation
      class << self
        # Builds a manager for statistics callbacks
        # @return [Karafka::Core::Instrumentation::CallbacksManager]
        def statistics_callbacks
          @statistics_callbacks ||= CallbacksManager.new
        end

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

        # Builds a manager for oauth bearer token refreshes
        # @return [Karafka::Core::Instrumentation::CallbacksManager]
        def oauthbearer_token_refresh_callbacks
          @oauthbearer_token_refresh_callbacks ||= CallbacksManager.new
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
karafka-core-2.4.8 lib/karafka/core/instrumentation.rb
karafka-core-2.4.7 lib/karafka/core/instrumentation.rb
karafka-core-2.4.6 lib/karafka/core/instrumentation.rb
karafka-core-2.4.5 lib/karafka/core/instrumentation.rb
karafka-core-2.4.4 lib/karafka/core/instrumentation.rb
karafka-core-2.4.3 lib/karafka/core/instrumentation.rb
karafka-core-2.4.2 lib/karafka/core/instrumentation.rb
karafka-core-2.4.1 lib/karafka/core/instrumentation.rb
karafka-core-2.4.1.rc1 lib/karafka/core/instrumentation.rb
karafka-core-2.4.0 lib/karafka/core/instrumentation.rb
karafka-core-2.4.0.rc2 lib/karafka/core/instrumentation.rb
karafka-core-2.4.0.rc1 lib/karafka/core/instrumentation.rb
karafka-core-2.4.0.beta2 lib/karafka/core/instrumentation.rb
karafka-core-2.4.0.beta1 lib/karafka/core/instrumentation.rb