Skip to content

Conversation

@andreasgerstmayr
Copy link
Contributor

@andreasgerstmayr andreasgerstmayr commented Nov 6, 2025

What this PR does:
Upgrading to grpc 1.38.0 broke compatibility with customtype in the protobuf schema, and the trace_id field in GetTraceRequest of cmd/tempo-query/jaeger/storage_v1/storage.pb.go uses customtype.
This PR updates tempo-query to use gogocodec as a workaround to get customtype support.

This issue only occurs when navigating to a trace in Jaeger UI and then hitting refresh (this triggers a GetTrace() request). Searching traces in Jaeger UI and opening them worked fine before this change as well, because this issued a FindTraces() request, which doesn't use a customtype.

This was fun to debug. Initially I thought Jaeger changed something in the protobuf schema in a recent version, however cmd/tempo-query/jaeger/storage_v1/storage.pb.go looks identical to https://github.com/jaegertracing/jaeger/blob/39ef71ed3564c0790c4a564441b492957a56a860/internal/proto-gen/storage_v1/storage.pb.go.
After a while I pointed Claude Code to #5487 and it managed to fix it almost immediately. I verified the changes, they make sense and fix the issue.

Which issue(s) this PR fixes:
Fixes #5487

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Upgrading to grpc 1.38.0 broke compatibility with gogoproto.customtype,
and the trace_id field in GetTraceRequest of storage.pb.go uses customtype.

This issue only occurs when navigating to a trace in Jaeger UI and
then hitting refresh (this triggers a GetTrace() request).
Searching traces in Jaeger UI and opening them worked fine before this
change as well, because this issued a FindTraces() request, which doesn't
use a customtype.
Signed-off-by: Andreas Gerstmayr <[email protected]>
Copy link
Contributor

@mapno mapno left a comment

Choose a reason for hiding this comment

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

LGTM

@mapno mapno merged commit 978b8bc into grafana:main Nov 6, 2025
22 checks passed
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.

panic: invalid Go type model.TraceID when browsing from

2 participants