apm-agent-nodejs icon indicating copy to clipboard operation
apm-agent-nodejs copied to clipboard

Implement transaction_name_groups config

Open felixbarny opened this issue 3 years ago • 1 comments

The Node.js agent supports the usePathAsTransactionName option.

A risk of using this option is that it can lead to cardinality issues when the path contains parameters. To mitigate this, the Node.js agent should

felixbarny avatar Aug 10 '22 11:08 felixbarny

Hi! I’d like to take this issue.

The risk of high-cardinality transaction names when using usePathAsTransactionName is definitely something worth addressing. I’ll implement the transaction_name_groups option to allow users to group dynamic paths into normalized patterns, helping reduce cardinality in APM data. I’ll also update the documentation to include a warning, similar to what the Java agent does, to help guide users toward best practices.

Let me know if there's any direction or edge cases you'd like me to keep in mind!

Siddhu545 avatar Apr 14 '25 11:04 Siddhu545