Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Express with custom router #115

Closed
sebastianhoitz opened this issue Feb 8, 2014 · 1 comment
Closed

Using Express with custom router #115

sebastianhoitz opened this issue Feb 8, 2014 · 1 comment

Comments

@sebastianhoitz
Copy link
Contributor

In my app I'm using Express with a catch-all route, that then gets interpreted by https://github.com/kieran/barista. So all my requests show up in New Relic as GET *.

What possibility do I have to instrument the router or to help newrelic figure out the route actual route being used?

@othiym23
Copy link
Contributor

othiym23 commented Feb 8, 2014

Take a look at the instructions for using the API to name transactions. You'll want to either use rules to rename URLs to paths, or figure out how to monkeypatch barista to call .setTransactionName(name) / .setControllerName(controller,action) once it's determined the mapping for a given request.

There are a thousand routers on npm, and it's pretty unlikely we'll auto-instrument most of them, but if you're interested in seeing support for barista added to New Relic for Node, let [email protected] know so it can make its way onto the roadmap.

Thanks for getting in touch, and I hope my answers are useful!

@othiym23 othiym23 closed this as completed Feb 8, 2014
cmcadams-newrelic pushed a commit to cmcadams-newrelic/node-newrelic that referenced this issue Jan 29, 2024
…/code-level-metrics/express/word-wrap-1.2.4

chore(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 in /code-level-metrics/express
jsumners-nr pushed a commit to jsumners-nr/node-newrelic that referenced this issue Apr 11, 2024
jsumners-nr pushed a commit to jsumners-nr/node-newrelic that referenced this issue Apr 16, 2024
…/async-2.6.4

Bump async from 2.6.3 to 2.6.4
bizob2828 added a commit to bizob2828/node-newrelic that referenced this issue Apr 19, 2024
bizob2828 added a commit to bizob2828/node-newrelic that referenced this issue Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants