We are capturing metrics on queue throughput in one of our apps.
There are often periods of no activity followed by periods of intense activity.
In the quiet periods with nothing going on, we want to abandon the transaction we have started (we don't know until after it is stated if there was anything to dequeue).
How can we abandon a transaction we started - is it simply enough to not call End() and let the instance go out of scope or is there something more specific to do?
I think the best approach would be to use the Filter API. The filter is called for each transaction and if you return null for a specific transaction, then it'll simply be ignored and not sent to the APM Server.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.