Skip to content

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

Open
mastersans wants to merge 2 commits into
VictoriaMetrics:masterfrom
mastersans:fix-tempo-traces-diff
Open

mastersans wants to merge 2 commits 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

@mastersans
mastersans force-pushed the fix-tempo-traces-diff branch from dc5a01a to 6b9c66f Compare November 11, 2026 18:31

@jiekun jiekun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hello thanks for the fix. Looks good overall, I want to rewrite only a few wordings, what do you think?

Comment thread app/vtselect/traces/tempo/tempo.go Resolved
Comment thread docs/victoriatraces/querying/README.md Resolved
@jiekun jiekun self-assigned this Nov 27, 2026

@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 3 files (changes from recent commits).

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 6bd0bc6 to e543d28 Compare November 30, 2026 09:10
Signed-off-by: Sanskar Sharma <sanskarsharma3110@gmail.com>
@mastersans
mastersans force-pushed the fix-tempo-traces-diff branch from e543d28 to a33831c Compare November 30, 2026 09:13
@mastersans
mastersans requested a review from jiekun November 30, 2026 09:18
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.

2 participants