-
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
Remove redundant traces call for related services #2315
Conversation
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
Signed-off-by: Shenoy Pratik <[email protected]>
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, tested locally
@@ -197,30 +196,6 @@ export const handleServiceMapRequest = async ( | |||
} | |||
} | |||
|
|||
if (currService) { | |||
await handleDslRequest(http, DSL, getRelatedServicesQuery(currService), mode, dataSourceMDSId) |
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 remove the function to get query if it's no longer used?
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.
yes deleted.
} | ||
|
||
// Add the related services to the map for the current service | ||
map[currService].relatedServices = [...relatedServices]; |
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.
nit. also remove
dashboards-observability/public/components/trace_analytics/components/common/plots/service_map.tsx
Line 49 in 8016a73
relatedServices?: string[]; // services appear in the same traces this service appears |
and the ones in
dashboards-observability/test/constants.ts
Line 446 in 8016a73
relatedServices: ['analytics-service', 'database', 'frontend-client'], |
* remove traces call for related services Signed-off-by: Shenoy Pratik <[email protected]> * remove call and update the number of traces to 500 Signed-off-by: Shenoy Pratik <[email protected]> * update snapshots Signed-off-by: Shenoy Pratik <[email protected]> --------- Signed-off-by: Shenoy Pratik <[email protected]> (cherry picked from commit a9610da) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* remove traces call for related services * remove call and update the number of traces to 500 * update snapshots --------- (cherry picked from commit a9610da) Signed-off-by: Shenoy Pratik <[email protected]> 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>
Description
Users were seeing high latency on the custom services page in trace analytics
Issues Resolved
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.