newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
202 stars 144 forks source link

ServletRequestListener metrics get labeled as javax even for new Jakarta implementations #1309

Open tbradellis opened 1 year ago

tbradellis commented 1 year ago

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

workato-integration[bot] commented 1 year ago

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