elastic / elastic/apm-agent-ruby

Rails controller exception not reported as an APM error in development environment

Open
#1,331 0 comments 0 reactions 0 assignees View on GitHub
agent-ruby bug
Dominant language
Ruby
Stars
173
Forks
151
Avg merge
4d 8h
Merged PRs (30d)
2

Description

We've observed that the agent doesn't create an error event for a controller exception when Rails is in a development environment.
This was observed in Rails 7.0.4/ Ruby 3.1.2 and further testing is needed to see if it's also the case on previous versions of Rails.

Further info:
- There is a config option, [config.action_dispatch.show_exceptions](https://guides.rubyonrails.org/configuring.html#actiondispatch-showexceptions) that might have an effect on whether the error is created
- We instrument [ActionDispatch::ShowExceptions#render_exception](https://github.com/elastic/apm-agent-ruby/blob/v4.5.1/lib/elastic_apm/spies/action_dispatch.rb#L27), so something about the code path in a Rails development environment doesn't reach this method

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.