Sha256: 28436150314f0051d4fcc1744c9be027ef22418506455e2c18246c2d43f5fb82
Contents?: true
Size: 716 Bytes
Versions: 1
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true class Memolog::Init def call init_rails! init_sentry! init_sidekiq! end private def init_rails! return unless defined?(Rails) && Memolog.config.initializers.include?(:rails) require "memolog/railtie" end def init_sentry! return unless defined?(Sentry::Scope) && Memolog.config.initializers.include?(:sentry) Sentry::Scope.prepend(Memolog::SentryScopeExtension) end def init_sidekiq! return unless defined?(Sidekiq) && Memolog.config.initializers.include?(:sidekiq) Sidekiq.configure_server do |config| config.server_middleware do |chain| chain.prepend(Memolog::SentrySidekiqMiddleware) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
memolog-0.2.0 | lib/memolog/init.rb |