Correctly configuring route handlers transaction names for OTel and New Relic integration #84599
Unanswered
thomasoreilly
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I'm looking for guidance on configuring OTel integration that will be consumed by New Relic. For the correct transaction names to appear I need to explicitly provide a route name to OTel. How I do this is by wrapping all route handlers with a function that sets
rpcMetadata.routewith a provided name.Additional information
Here's the function that sets the transaction name, this works and the names are correctly displayed in New Relic transactions page. If I don't set this explicitly then all transaction will be named as their HTTP verbs. Is there a better way to have the route handler names correctly configured which would remove the need to wrap all route handlers?
Beta Was this translation helpful? Give feedback.
All reactions