# Disable instrumentation for event target not working in apm-rum

**URL:** <https://discuss.elastic.co/t/disable-instrumentation-for-event-target-not-working-in-apm-rum/256496>\
**Category:** APM\
**Tags:** rum\
**Created:** [November 24, 2020, 11:34am UTC](https://discuss.elastic.co/t/disable-instrumentation-for-event-target-not-working-in-apm-rum/256496 "2020-11-24T11:34:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rejitha1](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rejitha1](https://discuss.elastic.co/u/rejitha1)\
**Post date:** [November 24, 2020, 11:34am UTC](https://discuss.elastic.co/t/disable-instrumentation-for-event-target-not-working-in-apm-rum/256496/1 "2020-11-24T11:34:17Z")

</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 🙂

TIP 1: select at least one tag that further categorizes your topic. For example `server` for APM Server related questions, `java` for questions regarding the Elastic APM Java agent, or `ui` for questions about the APM App within Kibana.

TIP 2: Check out the [troubleshooting guide](https://www.elastic.co/guide/en/apm/get-started/current/troubleshooting.html) first. Not only will it help you to resolve common problems faster but it also explains in more detail which information we need before we can properly help you.

**Kibana version** :7.9

**Elasticsearch version** :7.9

**APM Server version** :7.9

**APM Agent language and version** :apm-rum and apm-rum-core

**Browser version** :

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

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

I am trying to use the apm-rum/apm-rum-core packages in my angular application.The index.d.ts is missing the InstrumentationTypes 'eventtarget' so not able to disable the default instrumentation for the same.  
Is there any reason for this or its a bug.  
Regards,  
rejitha Raj

---

<div class="post-metadata">

**Author:** ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)\
**Post date:** [November 24, 2020, 11:50am UTC](https://discuss.elastic.co/t/disable-instrumentation-for-event-target-not-working-in-apm-rum/256496/2 "2020-11-24T11:50:07Z")

</div>

Hi @rejitha1,

The RUM agent already supports disabling `eventtarget` instrumentation, Its just the typings that is not updated which is already being fixed in this PR - [https://github.com/elastic/apm-agent-rum-js/pull/920](https://github.com/elastic/apm-agent-rum-js/pull/920)

But you can disable it using the `disableInstrumentations` config - [https://www.elastic.co/guide/en/apm/agent/rum-js/current/configuration.html#disable-instrumentations](https://www.elastic.co/guide/en/apm/agent/rum-js/current/configuration.html#disable-instrumentations)

```auto
apm.init({
  disableInstrumentations: ['eventtarget']
})

```

Thanks,  
Vignesh

---

<div class="post-metadata">

**Author:** ![rejitha1](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rejitha1](https://discuss.elastic.co/u/rejitha1)\
**Post date:** [November 25, 2020, 7:32am UTC](https://discuss.elastic.co/t/disable-instrumentation-for-event-target-not-working-in-apm-rum/256496/3 "2020-11-25T07:32:48Z")

</div>

Thanks for the quick response. I tried the same but getting typescript compile error. Is the fix part of the released version of rum package.  
Regards,  
Rejitha Raj

---

<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 16, 2020, 3:32am UTC](https://discuss.elastic.co/t/disable-instrumentation-for-event-target-not-working-in-apm-rum/256496/4 "2020-12-16T03:32:59Z")

</div>

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