-
Notifications
You must be signed in to change notification settings - Fork 59
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
Traces/Services - Query optimization / UI setting / Bugfix #2310
Conversation
Signed-off-by: Adam Tackett <tackadam@amazon.com>
…ctions Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: Adam Tackett <tackadam@amazon.com>
…link clicked Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: Adam Tackett <tackadam@amazon.com>
public/components/trace_analytics/components/common/__tests__/helper_functions.test.tsx
Outdated
Show resolved
Hide resolved
public/components/trace_analytics/components/common/custom_index_flyout.tsx
Show resolved
Hide resolved
public/components/trace_analytics/components/common/helper_functions.tsx
Show resolved
Hide resolved
public/components/trace_analytics/components/traces/trace_table_helpers.tsx
Outdated
Show resolved
Hide resolved
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.
Hi @TackAdam , thanks for putting this together. And I just left some comments.
public/components/trace_analytics/components/traces/trace_table_helpers.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Adam Tackett <tackadam@amazon.com>
public/components/trace_analytics/components/common/helper_functions.tsx
Show resolved
Hide resolved
public/components/trace_analytics/components/common/__tests__/helper_functions.test.tsx
Outdated
Show resolved
Hide resolved
public/components/trace_analytics/components/traces/trace_table_helpers.tsx
Show resolved
Hide resolved
DSL?.query?.bool.must | ||
.filter((must: any) => must.term?.['traceGroup']) | ||
.map((must: any) => must.term.traceGroup) || [] | ||
const targetResource = [].concat( |
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 logic no longer consider traceGroup filters in DSL anymore, does it change behavior of service metrics when filtering by trace group?
seems it would always consider all targetResources instead of the subset of targetResources that belong to services with traceGroups matching the user's traceGroup filter, which should cause a difference?
I'm ok if the difference it makes is not meaningful for users, just want to check if it's what we want
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. Once we address @joshuali925 's comment we can proceed to merge
Signed-off-by: Adam Tackett <tackadam@amazon.com>
Signed-off-by: Adam Tackett <tackadam@amazon.com>
prove readability, remove related servics Signed-off-by: Adam Tackett <tackadam@amazon.com>
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.
also CI has been failing?
Signed-off-by: Adam Tackett <tackadam@amazon.com>
Added in
To clean up the code readability when removing the related service param. Had to adjust the test as well I missed in last commit. Should pass now, will wait for run to complete. |
* improve service node query and related services query Signed-off-by: Adam Tackett <tackadam@amazon.com> * update url redirection for services for the table and expanded view actions Signed-off-by: Adam Tackett <tackadam@amazon.com> * remove extra toast messages from handleServiceMapRequest Signed-off-by: Adam Tackett <tackadam@amazon.com> * add observability setting for enabling custom source as the default mode Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix bug returning errors on spans that have a status.code === 1 Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix bug causing infinite refrshed if mds disabled and services trace link clicked Signed-off-by: Adam Tackett <tackadam@amazon.com> * add the mode param to url for services - trace redirection Signed-off-by: Adam Tackett <tackadam@amazon.com> * fix flaky cypress test for services Signed-off-by: Adam Tackett <tackadam@amazon.com> * address comments Signed-off-by: Adam Tackett <tackadam@amazon.com> * remove test, add comment, remove related service param Signed-off-by: Adam Tackett <tackadam@amazon.com> * place related services back Signed-off-by: Adam Tackett <tackadam@amazon.com> * add type for serviceMapParams, im prove readability, remove related servics Signed-off-by: Adam Tackett <tackadam@amazon.com> * update service map test for the new type Signed-off-by: Adam Tackett <tackadam@amazon.com> --------- Signed-off-by: Adam Tackett <tackadam@amazon.com> Co-authored-by: Adam Tackett <tackadam@amazon.com> (cherry picked from commit 8016a73) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…2312) * improve service node query and related services query * update url redirection for services for the table and expanded view actions * remove extra toast messages from handleServiceMapRequest * add observability setting for enabling custom source as the default mode * fix bug returning errors on spans that have a status.code === 1 * fix bug causing infinite refrshed if mds disabled and services trace link clicked * add the mode param to url for services - trace redirection * fix flaky cypress test for services * address comments * remove test, add comment, remove related service param * place related services back * add type for serviceMapParams, im prove readability, remove related servics * update service map test for the new type --------- (cherry picked from commit 8016a73) Signed-off-by: Adam Tackett <tackadam@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Adam Tackett <tackadam@amazon.com>
Description
Before: (with all_services)
Before_460Buckets.mov
Required 460 buckets to avoid errors.
After: (removed all_services)
After_110Buckets.mov
Required just 110 buckets to avoid errors.
TRACE_CUSTOM_MODE_DEFAULT_SETTING:


Example usage:
CustomModeSetting.mov
Service page infinite refresh while MDS disabled bug Before:
Screen.Recording.2025-01-14.at.4.31.31.PM.mov
After (fixed):
Screen.Recording.2025-01-14.at.4.37.14.PM.mov
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.