Sha256: 95e6a6f25dd5ebc27e227e076518dc57dd034b4493391d8658a46d2d354d1007

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

require "sidekiq/tracer"

Sidekiq.logger.formatter = Sidekiq::Tracer::JsonLogFormatter.new

Sidekiq.configure_client do |config|
  config.client_middleware do |chain|
    chain.prepend Sidekiq::Tracer::ClientMiddleware
  end
end

Sidekiq.configure_server do |config|
  config.client_middleware do |chain|
    chain.prepend Sidekiq::Tracer::ClientMiddleware
  end
  config.server_middleware do |chain|
    chain.prepend Sidekiq::Tracer::ServerMiddleware
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-tracer-0.1.4 lib/sidekiq/tracer/auto.rb