# Nodejs APM all routes are /\* though using usePathAsTransactionName

**URL:** <https://discuss.elastic.co/t/nodejs-apm-all-routes-are-though-using-usepathastransactionname/237785>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [June 19, 2020, 10:18am UTC](https://discuss.elastic.co/t/nodejs-apm-all-routes-are-though-using-usepathastransactionname/237785 "2020-06-19T10:18:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SomeHowChris](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/somehowchris/32/70092_2.png) [@SomeHowChris](https://discuss.elastic.co/u/SomeHowChris)\
**Post date:** [June 19, 2020, 10:18am UTC](https://discuss.elastic.co/t/nodejs-apm-all-routes-are-though-using-usepathastransactionname/237785/1 "2020-06-19T10:18:40Z")

</div>

Hey there 🙂

**Kibana version** : 7.5.1

**Elasticsearch version** : 7.5.1

**APM Server version** : 7.5.1

**APM Agent language and version** : Nodejs with koa using apm agent 3.6.1

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**: We get elasticsearch as a could service and host the kibana and apm docker images with a custom bootstrap to get creds out of a vault but they don't change anything on the app. The node packages are downloaded through npm

**Is there anything special in your setup?** We use cloudfoundry so there's a nginx loadbalancer infront of the apm and kibana server.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
We use strapi as a cms. with it goes koa and therfor the @koa/router which should be supported as of the apm nodejs agent docs. We include the option `usePathAsTransactionName: true` at the start which in my understanding should get us something like `/navigations` or `/project-pages/4` and not always `/*`. This seems weird as all our other stuff with express seems to work

**Steps to reproduce** :

1. Create a strapi project & setup apm
2. Create your api, use it and see the result in kibana

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 10, 2020, 6:18am UTC](https://discuss.elastic.co/t/nodejs-apm-all-routes-are-though-using-usepathastransactionname/237785/2 "2020-07-10T06:18:49Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
