apm-agent-ruby
apm-agent-ruby copied to clipboard
Rails ActiveJob integration?
Is your feature request related to a problem? Please describe.
In a Rails project, we are using GoodJob as backend for ActiveJob. I see that there is no GoodJob adapter in the Elastic APM Ruby client (which is fine of course), but it also seems to me that it's missing a generic ActiveJob integration. Right?
Describe the solution you'd like
An ActiveJob integration would be great.
Describe alternatives you've considered
We are using some custom instrumentation around the perform method:
# in our ApplicationJob base class
around_perform do |job, block|
ElasticAPM.with_transaction(job.class.name, :backgroundjob) do |_transaction|
block.call
end
end