Sha256: 424af9956c2a768536b72a402b5da8d1fc655d4447c0ed0b46f3e79b74d27375
Contents?: true
Size: 583 Bytes
Versions: 10
Compression:
Stored size: 583 Bytes
Contents
module Lambdakiq class Railtie < ::Rails::Railtie config.lambdakiq = ActiveSupport::OrderedOptions.new config.lambdakiq.max_retries = 12 config.lambdakiq.metrics_namespace = 'Lambdakiq' config.after_initialize do config.active_job.logger = Rails.logger config.lambdakiq.metrics_logger = Rails.logger end initializer "lambdakiq.metrics" do |app| ActiveSupport::Notifications.subscribe(/active_job/) do |*args| event = ActiveSupport::Notifications::Event.new *args Lambdakiq::Metrics.log(event) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems