Repository navigation
feat(traces): surface span links in the trace viewer #2463
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e63dfd1
feat(traces): surface span links in the trace viewer
alex-fedotyev aa6f19d
feat(traces): rewire span-link navigation onto the shared source stack
alex-fedotyev 2c6f423
Merge remote-tracking branch 'origin/main' into alex/hdx-3191-span-links
alex-fedotyev 086ead9
feat(traces): name span-link breadcrumb hops; tighten link gating
alex-fedotyev fb97673
fix(traces): keep span-link row keys unique for duplicate destinations
alex-fedotyev 0f9417c
Merge branch 'main' into alex/hdx-3191-span-links
karl-power e313a6e
feat(traces): make Span Links Expression configurable in the source form
alex-fedotyev bcbf189
Merge branch 'main' into alex/hdx-3191-span-links
karl-power fecfe12
select linked span when going forward or back, tidy comments
karl-power File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| '@hyperdx/common-utils': patch | ||
| '@hyperdx/app': patch | ||
| '@hyperdx/api': patch | ||
| --- | ||
|
|
||
| feat: surface OpenTelemetry span links in the trace view. Trace sources gain an | ||
| optional `spanLinksValueExpression` field (auto-detected from the OTel `Links` | ||
| column), and the span detail panel shows a new "Span Links" section. Each link | ||
| has an "Open trace" action that opens the linked trace in place in the same | ||
| panel, with a breadcrumb trail you can step back through, and shows the link's | ||
| trace state and attributes as chips. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| import React from 'react'; | ||
|
|
||
| import { SpanLinksSubpanel } from './SpanLinksSubpanel'; | ||
|
|
||
| export default { | ||
| title: 'Components/SpanLinksSubpanel', | ||
| component: SpanLinksSubpanel, | ||
| }; | ||
|
|
||
| const mockSpanLinks = [ | ||
| { | ||
| TraceId: '6d4a1f0d2c3b4a5e6f7081929394a5b6', | ||
| SpanId: '1a2b3c4d5e6f7081', | ||
| TraceState: 'rojo=00f067aa0ba902b7', | ||
| Attributes: { | ||
| 'messaging.system': 'kafka', | ||
| 'messaging.kafka.partition': '3', | ||
| 'order.id': 'A-7741', | ||
| }, | ||
| }, | ||
| { | ||
| TraceId: 'a1b2c3d4e5f60718293a4b5c6d7e8f90', | ||
| SpanId: '90a1b2c3d4e5f607', | ||
| TraceState: '', | ||
| Attributes: {}, | ||
| }, | ||
| ]; | ||
|
|
||
| export const Default = () => <SpanLinksSubpanel spanLinks={mockSpanLinks} />; | ||
|
|
||
| export const SingleLink = () => ( | ||
| <SpanLinksSubpanel spanLinks={[mockSpanLinks[0]]} /> | ||
| ); | ||
|
|
||
| export const Empty = () => <SpanLinksSubpanel spanLinks={[]} />; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.