-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Trace View: Update the queryType to traceql for checking if same trace when clicking span link #66645
Trace View: Update the queryType to traceql for checking if same trace when clicking span link #66645
Conversation
… when clicking span link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution Eric, appreciate all the context you added to the PR!
Left a comment to simplify the change, since we don't need to support traceId
anymore.
Hello @adrapereira!
Please, if the current pull request addresses a bug fix, label it with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…e when clicking span link (#66645) * TraceView: update the queryType to traceql for checking if same trace when clicking span link * TraceView: linting * TraceView: remove traceid check completely
…same trace when clicking span link (#66670) Trace View: Update the queryType to traceql for checking if same trace when clicking span link (#66645) * TraceView: update the queryType to traceql for checking if same trace when clicking span link * TraceView: linting * TraceView: remove traceid check completely (cherry picked from commit 6462c81) Co-authored-by: Eric Mustin <mustin.eric@gmail.com>
What is this feature?
This PR is a bug fix for the TraceView component. When clicking a trace span's "links", a split pane was always opening even if the span belonged to the same trace. The intended behavior is to only open a new pane if it's a different trace.
As far as i can tell from git history, this is a regression is part of the migration to the
traceql
tab from thetraceid
tab (see: #60180). This work enabled thetraceql
tab to also be used for individual trace lookup/viewing individual traces + the PR hid thetraceid
tab. Looks like a line was just missed for updating queryType fromtraceid
totraceql
as part of that work. Reviewing the tests it seems like this should just betraceql
, but I've tried to introduce this gracefully (support both comparing a check for queryTypetraceql
andtraceid
when deciding whether a new pane should be opened for a span link) in case any folks have already built custom monkeypatches assumingtraceid
.We just picked this up on the upgrade to 9.4 and are already running this patch in production without issue, for context.
Why do we need this feature?
[Add a description of the problem the feature is trying to solve.]
Who is this feature for?
folks using opentelemetry span links or other similar styles of relationship between traces.
Which issue(s) does this PR fix?:
n/a, i can open an issue demonstrating the problem but this is pretty straightforward imo.
Special notes for your reviewer:
Please check that: