30 Mar 2026
09:44 AM
- last edited on
31 Mar 2026
07:13 AM
by
MaciejNeumann
Hi everyone,
I’m looking for advice on managing and controlling query costs in DQL, especially when working with spans.
In my recent experiments, I’ve been querying spans for about 1–2 hours, even with a 500GB limit in a notebook, and I’ve already incurred more than €70 in costs. At that rate, this could scale to roughly €25K per year, which feels quite high for platform usage. Therefore I'm guessing there is a better way to achieve certain informational needs.
I’d love to understand how others are handling this more efficiently. Specifically:
Thanks in advance!
Michiel
30 Jun 2026 04:28 PM
Hi Michiel,
Did you ever get a response? I am also very interested if there is a solution.
03 Jul 2026 02:51 AM
Hey Michiel,
Going through your questions:
What are best practices to control or reduce query costs when working with spans?
Do you rely on approaches like pre-aggregation (e.g., creating metrics or business events) instead of querying raw spans?
How do you structure or use buckets to reduce the amount of data scanned?
Are there recommended strategies for limiting data (time ranges, filters, sampling, etc.)?
For querying spans there are a few things I often do to help manage costs:
How do you monitor and optimize expensive queries effectively? Do we need to create anomaly detectors?
For monitoring/managing expensive queries from others I use 3 approaches:
Featured Posts