# Is it possible to disable sending metrics for specific transactions/endpoints?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-disable-sending-metrics-for-specific-transactions-endpoints/239205>\
**Category:** APM\
**Tags:** ruby\
**Created:** [June 30, 2020, 12:18am UTC](https://discuss.elastic.co/t/is-it-possible-to-disable-sending-metrics-for-specific-transactions-endpoints/239205 "2020-06-30T00:18:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adnanrh](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@adnanrh](https://discuss.elastic.co/u/adnanrh)\
**Post date:** [June 30, 2020, 12:18am UTC](https://discuss.elastic.co/t/is-it-possible-to-disable-sending-metrics-for-specific-transactions-endpoints/239205/1 "2020-06-30T00:18:00Z")

</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.6.2

**Elasticsearch version** : 7.6.2

**APM Server version** : 7.6.2

**APM Agent language and version** : Ruby 3.6.0

**Browser version** : Chrome

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

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

**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.

**Description of the problem including expected versus actual behavior. Please include screenshots (if relevant)** : Hello, I'm running Rails 5.0 and was wondering if there is a way to disable the sending of metrics for specific transactions. For example, my app has a health controller for health checks, and I don't want agents to send metrics for this endpoint to the apm server. Can I do this? Is it possible to simply add a before\_action callback on the health controller that ends the current transaction? Thanks!

**Steps to reproduce** :  
1.  
2.  
3.

**Errors in browser console (if relevant)** :

**Provide logs and/or server output (if relevant)** :

---

<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 20, 2020, 8:18pm UTC](https://discuss.elastic.co/t/is-it-possible-to-disable-sending-metrics-for-specific-transactions-endpoints/239205/2 "2020-07-20T20:18:10Z")

</div>

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