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

RPM Ruby agent truncates stack trace

rpm

#1

Recently, I updated newrelic_rpm gem to 5.3.0.346 from 4.8.0.341 and noticed that stack traces of error logs is truncated.
It seems that it’s introduced by 5.1.0.344
Commit: https://github.com/newrelic/rpm/commit/89a6423b9ed1ca74d89ba2d5cc1ba62ed974268e
Release note: https://github.com/newrelic/rpm/blob/master/CHANGELOG.md#v510

While I understand the motivation, the way of truncation eliminated convenience of error analytics a lot.
When the error is raised from a deep place of a framework (in my case rails), first and last 25 lines is not enough. It often doesn’t include any my application code and it makes hard to find the cause.

Please recover full stack trace or at least include application code trace.


#3

Hey @yusuke.mito!

Thanks for letting us know you miss the full error stack trace and acknowledging reasons for us making this change. For most customers the first and last 25 lines of the error trace are sufficient, but I understand it is not in your case.

I filed a feature request on your behalf to get more lines in the error trace and suggested making a configuration file option for this. Thanks for bringing this up. :+1:


#4

I also have the same problem. In may case I am only getting 1 or two lines
It is driving me insane tracking down problems.
I was considering trying a different system, but if it is configurable, that would solve our problem
Does any one know if this has been implemented


#5

Hey @jobgetter-

Thanks for following up on this post! I’d like to help look into this for you.
Do you think you could reply with a permalink to show me what you’re seeing?

note: only NR Admin will be able to successfully redirect when clicking the permalink

Thank you!

–Sara