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 spring 6 pointcuts, after migration from javax to jakarta #1505

Closed
wants to merge 1 commit into from

Conversation

sokolek
Copy link
Contributor

@sokolek sokolek commented Sep 17, 2023

I've observed that since migration to spring 6, the newrelic agent no longer sends error message when http requests fails. SpringExceptionHandlerPointCut used to fill error message, intercepting calls to org.springframework.web.servlet.DispatcherServlet#processHandlerException. Pointcut was defined to capture method with signature "(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Ljava/lang/Object;Ljava/lang/Exception;)Lorg/springframework/web/servlet/ModelAndView;". Spring 6 moved to jakarta, so jakarta instead of javax is now used and method signature from SpringExceptionHandlerPointCut no longer captures org.springframework.web.servlet.DispatcherServlet#processHandlerException.

I've added new pointcuts reflecting new jakarta package names, used since Spring 6.0.

@CLAassistant
Copy link

CLAassistant commented Sep 17, 2023

CLA assistant check
All committers have signed the CLA.

@kford-newrelic kford-newrelic added estimate Issue needing estimation oct-dec qtr Represents proposed work item for the Oct-Dec quarter 2 Story Point Estimate and removed estimate Issue needing estimation labels Sep 20, 2023
@jtduffy
Copy link
Contributor

jtduffy commented Oct 11, 2023

Closed for duplicate #1544

@jtduffy jtduffy closed this Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 Story Point Estimate oct-dec qtr Represents proposed work item for the Oct-Dec quarter
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants