NOTE: this post got flagged as “spam” for no reason by “the community” and got hidden because of it. I’m supposed to edit it to “reflect their feedback” but since there was nothing wrong with the post in the first place, I’m just adding this note. I hope the Staff reviews who wrongly flagged it and ban them, but more importantly, I hope they remove this idiotic system where a post (which should have been a support ticket in the first place and never a post in a public forum, but support tickets aren’t an option even for paying customers) can get automatically hidden without reivew just because somebody randomly flags it.
In my PHP application, I have a web transaction that is pretty fast compared to most transactions, but I want to check if it’s slower than it should be.
So, I would like to have a trace of even just one random execution of this transaction.
I would expect there to be some method in the agent API such as trace_this_transaction() or something, to force the agent to record a trace of the transaction. But there doesn’t seem to be such a thing.
What I can apparently do, is start tracking that transaction as a key transaction, and set a lower value of Apdex T for it. I set an unrealistically low value (10 ms) for T so that any given execution of that transaction will take >4*T and hence will be eligible for being traced.
Yet I don’t get any traces. It says: “no transactions took longer than 0.04 seconds”. Note that the threshold is right. And that’s just not true: the graph shows that every single instance of the transaction did in fact take more than 0.04 seconds.
Even on the live application, where there are slow traces for other transactions relatively frequently, I would expect this one to be the one-in-a-minute that gets picked at least sometimes.
Anyway, I have done the same on a development replica of the website, that nobody but me visits, so there are no other slow transactions competing with the one I want to trace, and yet I get no traces.
What am I missing?