-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Why is this needed?
By default, TraceQL metrics queries only support up to 24h time ranges. While some tenants have requested exceptions to this (and may have up to 48h), for most users it's relatively easy to exceed this range, especially when using Grafana's time range picker, with which you can easily select a longer time range.
However, when users select a longer range, the page fails with an error, which often is too generic as shown below.
Sometimes, the error includes more details leaving some clues on what is wrong
Nevertheless, users must be familiar with the limitations of Tempo in order to interpret this error as exceeding the backend limit.
What should be added
Catch and handle the error more gracefully, with a custom error message telling users that they are reaching the query time range limit. We can emphasize that the range limit is a sliding window: they could still choose a similar range in any part of their retention period (usually 30 days).
Future iterations may include a smarter range picker that limits or encourages ranges only up to the permitted limit. However, we should still handle the error case gracefully, in case it's passed as a URL argument.