Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Feature Idea: Exception Chaining

feature-idea

#1

This is a request to support exception chaining in APM with the Python agent.

In one place in my code I’m catching and throwing a new exception like this:

except Exception as ex:
    raise FooError(str(ex)) from ex

where I’m using exception chaining to supplement the stack trace so that it doesn’t get lost.

In the NewRelic APM Error logs, the stack trace is only visible for the top most exception, while the built-in function traceback.format_exc(), prints both stack traces.

Thanks!



New Relic Edit

  • I want this too
  • I have more info to share (reply below)
  • I have a solution for this

0 voters

We take feature ideas seriously and our product managers review every one when plotting their roadmaps. However, there is no guarantee this feature will be implemented. This post ensures the idea is put on the table and discussed though. So please vote and share your extra details with our team.


#2

Hey @tflanagan - I’ve got your feature idea filed internally :smiley:

I’ve also added a poll here for you to get some extra votes on this feature.