rollbar / rollbar-gem

Exception tracking and logging from Ruby to Rollbar
https://docs.rollbar.com/docs/ruby
MIT License
445 stars 279 forks source link

application stack traces not appearing in Rollbar for errors in development mode #787

Closed dwegman closed 5 years ago

dwegman commented 5 years ago

I've been having trouble getting application stack traces to show up in my Rollbar errors recently. Here is an example of an error, NoMethodError: undefined method*' for nil:NilClass`, which was caught by Rollbar: https://rollbar.com/ValorWater/Aquifer/items/1842/occurrences/57186663629/.

This is happening in my development environment. I have noticed that in my staging environment, the same error does include a stack trace: https://rollbar.com/ValorWater/Aquifer/items/1946/occurrences/57186479861/

In my Rollbar initializer file, I am not setting config.populate_empty_backtraces anywhere. I have experimented with setting config.populate_empty_backtraces = true, and found that it includes the non-project frames, but still no application stack trace: https://rollbar.com/ValorWater/Aquifer/items/1950/occurrences/57196108276/

jessewgibbs commented 5 years ago

@dwegman thanks for the detailed report.

@ArturMoczulski can you investigate?

ArturMoczulski commented 5 years ago

Thanks for reporting @dwegman . I just verified that I'm getting the stack trace correctly on my local test app.

Can you tell me what's the difference in envrionment between your development and staging? Meaning, are you setting any properties differently to indicate it's a deve environment?

jessewgibbs commented 5 years ago

@dwegman I'm closing this issue since we haven't heard back from you. If you're still encountering it, please let us know.