newrelic / newrelic/newrelic-java-agent

Replace CXF related point cuts with new weaver instrumentation module

Open
#2,850 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2
Dominant language
Java
Stars
240
Forks
170
Avg merge
3d 2h
Merged PRs (30d)
21

Description

Description

Point cuts:
com.newrelic.agent.instrumentation.pointcuts.frameworks.cxf.CXFPointCut
com.newrelic.agent.instrumentation.pointcuts.frameworks.cxf.CXFInvokerPointCut
com.newrelic.agent.instrumentation.pointcuts.frameworks.cxf.ClientProxyPointCut

Instruments the following:

org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletConfig, ServletContext, HttpServletRequest, HttpServletResponse)
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(Exchange, Object, Method, Object[])
org.apache.cxf.frontend.ClientProxy.invokeSync(Method, BindingOperationInfo, Object[])

This module does not need to act as a dispatcher in anyway since the execution flow starts at the standard servlet layer.

The new module should target the following CXF versions:
javax namespace: v3 -> v4 (exclusive)
jakarta namespace: v4 -> current

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading CXFPointCut.java, CXFInvokerPointCut.java, and ClientProxyPointCut.java, then trace the listed CXF methods and the standard servlet entry point. Review how existing instrumentation modules handle javax and jakarta version ranges. Done means replacing these point cuts with the new weaver instrumentation module for javax CXF v3–v4 exclusive and jakarta CXF v4 onward, without dispatcher behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, devtools
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.