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

fix tomcat 10 jakarta naming #1176

Merged
merged 1 commit into from
Mar 9, 2023

Conversation

tbradellis
Copy link
Contributor

@tbradellis tbradellis commented Mar 9, 2023

This fixes an issue where we miss reporting an Exception stack trace. This surfaced as a "Spring Boot 3" issue, but it is in reality an issue with our tomcat 10 instrumentation. Tomcat 10 was migrated to all Jakarta naming packages. There was a key string we use that did not update to the correct jakarta named package that we expect (was javax...)

Essentially the exception thrown in the Spring Boot controller bubbles up to the DispatcherServlet extends FrameworkServlet, which is where we would report this exception. Because the naming was wrong, the transactionData throwable is set to null and we only show the status 500.

And just for completeness, I updated the agent package names to reflect they are in our tomcat10 module vs tomcat7

This screenshot demonstrates

Uploading errorsinbox.png…

Overview

Describe the changes present in the pull request

Related Github Issue

Include a link to the related GitHub issue, if applicable

Testing

The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here,

Checks

[ ] Are your contributions backwards compatible with relevant frameworks and APIs?
[ ] Does your code contain any breaking changes? Please describe.
[ ] Does your code introduce any new dependencies? Please describe.

@tbradellis tbradellis merged commit 8249671 into main Mar 9, 2023
@tbradellis tbradellis deleted the NR-18831-fix-tomcat10-exception-reporting branch March 9, 2023 22:24
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.

2 participants