-
Notifications
You must be signed in to change notification settings - Fork 328
feat: Add custom trace-level attributes above trace waterfall #1356
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
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: f6e12c8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Review - Trace-Level Highlighted AttributesCode Quality Issues
Suggested Fixes
Minor Notes
|
E2E Test Results✅ All tests passed • 39 passed • 3 skipped • 400s
|
|
|
||
| // Currently we can't distinguish null or 'null' | ||
| if (value === 'null') { | ||
| if (value == null || value === 'null') { |
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.
JSON column values were being returned as actual null values here, which then broke the value.length check below.
c3a22b0 to
744024c
Compare
| React.useEffect(() => { | ||
| if ( | ||
| !areFiltersEqual(filters, parsedQuery.filters) && | ||
| Object.values(parsedQuery.filters).length > 0 |
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.
This check was preventing us from clearing the filter state if all filters were removed from the URL params (which happens when changing sources due to clicking on an attribute from a different source)
Ref HDX-2752
Summary
This PR adds a new Source setting which specifies additional Span-Level attributes which should be displayed above the Trace Waterfall. The attributes may be specified for both Log and Trace kind sources.
These are displayed on the trace panel rather than at the top of the side panel because
Notes:
Demo
First, source is configured with highlighted attributes:

Values for those attributes within the trace show up on the trace panel above the waterfall:

Values are searchable when clicked, and if a lucene version of the property is provided, the lucene version will be used in the search box
