Abandon/Cancel a transaction

Hi

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?

Thanks

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.

Ok thanks Greg - that is the route we ended up pursuing - didn't know if there was a better way or not

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