newrelic-java-agent icon indicating copy to clipboard operation
newrelic-java-agent copied to clipboard

ServletRequestListener metrics get labeled as javax even for new Jakarta implementations

Open tbradellis opened this issue 2 years ago • 1 comments

Description

metrics are currently misnamed for jakarta.servelet.ServletRequestListener as javax.servlet.ServletRequestListner https://github.com/newrelic/newrelic-java-agent/blob/06c4e2ef4c5c66d5573d294acbf729a943d709e2/newrelic-agent/src/main/java/com/newrelic/agent/Transaction.java#L126

We have a hard coded string for ServletRequestListener on the Transaction object that causes the metric name to be incorrect for jakarta implementations.

Expected Behavior

javax initialized code should have metric names as such. likewise, jakarta initialized code should have metric names as such

tbradellis avatar Jun 09 '23 03:06 tbradellis

https://issues.newrelic.com/browse/NEWRELIC-9271