# disableInstrumentations for route-change

**URL:** <https://discuss.elastic.co/t/disableinstrumentations-for-route-change/208598>\
**Category:** APM\
**Tags:** rum\
**Created:** [November 20, 2019, 2:18am UTC](https://discuss.elastic.co/t/disableinstrumentations-for-route-change/208598 "2019-11-20T02:18:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kartheek\_Mannepalli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kartheek_mannepalli/32/55290_2.png) [@Kartheek\_Mannepalli](https://discuss.elastic.co/u/Kartheek_Mannepalli)\
**Post date:** [November 20, 2019, 2:18am UTC](https://discuss.elastic.co/t/disableinstrumentations-for-route-change/208598/1 "2019-11-20T02:18:14Z")

</div>

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text 🙂

**Kibana version** : 7.4.0

**Elasticsearch version** :7.4.0

**APM Server version** :7.4.0

**APM Agent language and version** : apm-rum-angular: 0.3.0

**Browser version** : Chrome 78

**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:

**Fresh install or upgraded from other version?**

**Is there anything special in your setup?** For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.  
NO

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)**:  
I have this configured with my APM agent.

> disableInstrumentations: ['page-load', 'route-change']

The page-load transaciton no longer show up but the route-change still show up. Is this a bug on your end or is there something I need to change?

---

<div class="post-metadata">

**Author:** ![Hamidreza](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamidreza/32/21369_2.png) [@Hamidreza](https://discuss.elastic.co/u/Hamidreza)\
**Post date:** [November 20, 2019, 9:03am UTC](https://discuss.elastic.co/t/disableinstrumentations-for-route-change/208598/2 "2019-11-20T09:03:33Z")

</div>

Hi @Kartheek_Mannepalli,

Thanks for reaching out.

Currently, `disableInstrumentations` doesn't support disabling route changes, instead you should add `disableInstrumentations: [history]` to your config and remove the angular integration. You can instead use the base package `@elastic/apm-rum` to instrument your application.

I've also created [this issue](https://github.com/elastic/apm-agent-rum-js/issues/499) to make the configuration easier.

Cheers,  
Hamid

---

<div class="post-metadata">

**Author:** ![Kartheek\_Mannepalli](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kartheek_mannepalli/32/55290_2.png) [@Kartheek\_Mannepalli](https://discuss.elastic.co/u/Kartheek_Mannepalli)\
**Post date:** [November 20, 2019, 5:22pm UTC](https://discuss.elastic.co/t/disableinstrumentations-for-route-change/208598/3 "2019-11-20T17:22:06Z")

</div>

@Hamidreza Thanks for the response. The route-change is kind of helpful for us so we might keep the angular integration. I wanted to see if we have the option of disabling it in the future.

---

<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:** [December 11, 2019, 1:28pm UTC](https://discuss.elastic.co/t/disableinstrumentations-for-route-change/208598/4 "2019-12-11T13:28:12Z")

</div>

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