![](/blog/2021-05-20-writing-your-own-php-apm-horror-stories-2/featured_hu314fc8d9f7f7286e6923f916ddb6f105_40455_831x267_fill_box_smart1_3.png)
On a nice May day, we spent a whole day going through Elastic APM Go Agent code, to try to figure out why it doesn’t log Spans, and all Transactions of a certain kind are just always not sampled. Once again, because wrote our own Elastic APM PHP Agent, we got bit in the behind and spent a better part of the day WTF-ing through all the code, just to switch ONE BIT in the end, to solve the issue.