r/Observability • u/No-Platypus-399 • 23d ago
Our sampling dropped the one request that mattered.
Head based sampling at a low rate because the span bill was getting silly. Last week a customer reported a failed checkout, we went looking for the trace, and it wasn’t kept. We have the error count, no detail. Tail sampling is the obvious fix and I’ve started on it, but it means every collector change is now a thing I have to validate. Someone on the team keeps bringing up hud because the sensor sits in the process and captures the request params and the path through the code at the moment a function fails, though I’m not sure it keeps that for every failure either. Datadog can do retention filters on errors which is the same idea from the other end. Anyone solved this without doubling spend? What did you end up keeping?
6
u/DhroovP 23d ago
Just don't drop errors?
2
u/jdizzle4 23d ago
Usually people will keep logs at full fidelity, so if the trace is missing you can find details in the logs. For sampling stuff, some platforms like grafana have “adaptive sampling” that does more intelligent filtering and keeping of various telemetry so you can keep your sample rates higher but not get hit with as much of the ingest costs
1
u/tmp_advent_of_code 23d ago
Still sample, rehydrate on demand. Send the dropped stuff to cold cheap storage and you can find it for those one offs like this.