Skip to content

vtselect: return 404 for Tempo /api/v2/traces/diff - #315

Open
mastersans wants to merge 1 commit into
VictoriaMetrics:masterfrom
mastersans:fix-tempo-traces-diff
Open

mastersans wants to merge 1 commit into
VictoriaMetrics:masterfrom
mastersans:fix-tempo-traces-diff

Conversation

@mastersans

@mastersans mastersans commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

GET and POST /select/tempo/api/v2/traces/diff now return 404 without searching storage. The /select/tempo/api/v2/traces/ prefix treated diff as a trace ID, scanned the retention period, and returned 200 with an empty trace.

On a separate note Tempo's trace-diff API is still not implemented. I will be happy to help with implementing it?

Test plan

  • GET and POST /select/tempo/api/v2/traces/diff return 404, including POST with start and end
  • A real /select/tempo/api/v2/traces/{trace_id} lookup still returns the trace

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

The v2 trace-by-ID prefix treated diff as a trace ID and scanned storage.

Signed-off-by: Sanskar Sharma <sanskarsharma3110@gmail.com>
@mastersans
mastersans force-pushed the fix-tempo-traces-diff branch from dc5a01a to 6b9c66f Compare November 11, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant