Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backtrace line 0 to 3.4 ERB failure logs #2993

Merged
merged 6 commits into from
Dec 11, 2024

Conversation

kaylareopelle
Copy link
Contributor

@kaylareopelle kaylareopelle commented Dec 11, 2024

Ruby 3.4 no longer provides the line number in the exception message for the error raised by a failure to parse ERB in the newrelic.yml file.

To help our customers with debugging, add the line number to the output by printing the first line of the backtrace for the exception to the agent logs

Resolves #2902

Full CI: https://github.com/newrelic/newrelic-ruby-agent/actions/runs/12285237901

Also, we removed branch coverage because there's a bug in Ruby 3.4's version of the prism parser that causes suites to silently fail when simplecov runs: https://bugs.ruby-lang.org/issues/20866

Ruby 3.4 no longer provides the line number in the exception message
for the error raised by a failure to parse ERB in the newrelic.yml file.

To help our customers with debugging, add the line number to the output
by printing the first line of the backtrace for the exception to the
agent logs

Resolves #2902
tannalynn
tannalynn previously approved these changes Dec 11, 2024
tannalynn
tannalynn previously approved these changes Dec 11, 2024
Copy link
Contributor

SimpleCov Report

Coverage Threshold
Line 93.86% 93%

@kaylareopelle kaylareopelle merged commit 40f8b53 into dev Dec 11, 2024
148 of 149 checks passed
@kaylareopelle kaylareopelle deleted the erb-failure-message-3-4-0 branch December 11, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ruby 3.4 Support: Errors and their output may be different
2 participants