Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails ActiveJob integration? #1434

Open
blocknotes opened this issue Jan 17, 2024 · 0 comments
Open

Rails ActiveJob integration? #1434

blocknotes opened this issue Jan 17, 2024 · 0 comments

Comments

@blocknotes
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant