-
Notifications
You must be signed in to change notification settings - Fork 98
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
Explicit way of failing a "other" transaction #347
Comments
@VitorTrin I'm curious, is this not accomplishable by decorating the Oban perform function with something like elixir_agent/lib/new_relic/tracer/macro.ex Lines 194 to 199 in f109ced
|
The trace macro wasn't enough for me because I wanted my job transactions to show up as |
Do they show up in any distinguishable manner? The tracer documentation indicates that it reports the function name. elixir_agent/lib/new_relic/tracer.ex Lines 23 to 27 in f109ced
I'm invested in this as well since it is something I am also trying to get working with Oban |
Is your feature request related to a problem? Please describe.
The
NewRelic.start_transaction()
automaticaly catches exceptions and reports errors, which is great for most use cases, but sometimes you can't raise and you still would like to report something. For example, inside Oban jobs, raises are caught by Oban and never end up reported.Describe the solution you'd like
Add the
NewRelic.stop_transaction/1
function. The argument of this function is the error that will be reportedDescribe alternatives you've considered
Directly calling
NewRelic.Transaction.Reporter.fail/1
with varied levels of success.The text was updated successfully, but these errors were encountered: