Skip to content

Instantly share code, notes, and snippets.

@qrush qrush/application_job.rb
Last active Sep 20, 2019

What would you like to do?
Use Honeycomb to trace ActiveRecord calls inside of ActiveJob
class ApplicationJob < ActiveJob::Base
around_perform do |job, block|
Honeycomb.start_span(name: do |span|
span.add_field 'type', 'worker'
span.add_field '', job.queue_name

This comment has been minimized.

Copy link
Owner Author

commented Jun 10, 2019

This gist adds a new trace for each job your Sidekiq (or whatever runs your jobs) runs:


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.