Skip to content

Commit

Permalink
Merge pull request #2410 from mjacobus/fix-view-component-instrumenta…
Browse files Browse the repository at this point in the history
…tion

Don't suppress view component rendering errors
  • Loading branch information
hannahramadan authored Jan 24, 2024
2 parents 11d212e + becdad9 commit 7e117f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ def render_in_with_tracing(*args)
)
yield
rescue => e
::NewRelic::Agent.logger.debug('Error capturing ViewComponent segment', e)
NewRelic::Agent.notice_error(e)
raise
ensure
segment&.finish
end
Expand Down

0 comments on commit 7e117f2

Please sign in to comment.