-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Search] Caching issue with searching last traces - no new traces are displayed #2476
Comments
Hi! Tempo does not necessarily return the most recent traces in the requested time range. It simply returns the first matching traces it finds. You’ve searched with no parameters so it will return 20 (default) random traces in the time period. You can try by increasing the number of results with |
Thank you for so surprising information! |
This issue has been automatically marked as stale because it has not had any activity in the past 60 days. |
I can't find the latest traces either, and am seeing random results. Is there any room for improvement here? |
Yes. The original decision to return the first N results that matched was due to the poor efficiency of searching the old v2 backend. I do believe with the newer backend we can start moving toward deterministic results, but this is not on our roadmap at the moment. |
Describe the bug
I have a problem that the search query for the last traces in Tempo by Grafana UI sometimes got cached or load-balanced, because I'm stopping to see new traces.
After several clicks on "Run query" I see the changing list of traces, but it contains old traces, without new ones, and seems there are 2 cached results, changing each other.
And in the same time I can search my new traces by trace_id, but they are still missing in the list of last traces!
Restarting the Tempo container helps to temporarily resolve the issue, and all last traces appear. But the problem returns after some time again.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The result of Search should always display all last traces.
Environment:
Additional Context
The text was updated successfully, but these errors were encountered: