Skip to content

New error api - #3097

Open
obenkenobi wants to merge 2 commits into
mainfrom
new-error-api
Open

New error api#3097
obenkenobi wants to merge 2 commits into
mainfrom
new-error-api

Conversation

@obenkenobi

@obenkenobi obenkenobi commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Overview

Add a new method to the error API to manually pass error classes and stack traces.

public void noticeError(String message, Map<String, ?> params, String className, StackTraceElement[] stackTrace, boolean expected);

I would not merge this PR until a corresponding agent spec PR is made.

Related Github Issue

#3033

@codecov-commenter

codecov-commenter commented Sep 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 68.88889% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 70.85%. Comparing base (4433c20) to head (6a3b7d5).
⚠️ Report is 24 commits behind head on main.

Files with missing lines Patch % Lines
.../newrelic/api/agent/NewRelicApiImplementation.java 33.33% 6 Missing and 2 partials ⚠️
...va/com/newrelic/agent/errors/ErrorServiceImpl.java 83.33% 0 Missing and 4 partials ⚠️
...elic/agent/service/analytics/SpanErrorBuilder.java 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3097      +/-   ##
============================================
- Coverage     70.87%   70.85%   -0.02%     
+ Complexity    10716    10712       -4     
============================================
  Files           873      873              
  Lines         43149    43174      +25     
  Branches       6527     6532       +5     
============================================
+ Hits          30581    30592      +11     
- Misses         9611     9618       +7     
- Partials       2957     2964       +7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants