-
Notifications
You must be signed in to change notification settings - Fork 66
[Traces] Make service map max nodes and max edges values user-configurable #2472
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] Make service map max nodes and max edges values user-configurable #2472
Conversation
…rviceMapMaxNodes Signed-off-by: Károly Szakály <[email protected]>
…ings Signed-off-by: Károly Szakály <[email protected]>
…es and its getter/setter funcs Signed-off-by: Károly Szakály <[email protected]>
…ttings Signed-off-by: Károly Szakály <[email protected]>
… number of edges to 1 Signed-off-by: Károly Szakály <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2472 +/- ##
=======================================
Coverage 56.29% 56.30%
=======================================
Files 398 398
Lines 16121 16130 +9
Branches 4490 4490
=======================================
+ Hits 9076 9082 +6
- Misses 6967 6970 +3
Partials 78 78
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Hi @szkly , LGTM. Thank you for your contribution! I noticed the user-settings currently doesn’t have any testing coverage, did you have any plan on adding that? If not, we can take it up as a follow-up. We will update documentation to reflect these new setting being available for adjustment on next release. |
Hi @TackAdam, no problem, happy to help!
No, I focused entirely on these changes, but I could take a stab at it in another PR.
Thanks, sounds good. |
Description
The aim of this PR is to make the max nodes and max edges (used in service map related queries) user-configurable, as they are currently (as of 3.1.0) constant values (500 and 1000 respectively), which can result in inaccurate service maps if service map indices contain more than 500 unique services or more than 1000 unique destinations per service.
I've registered these new settings alongside the existing ones:

The default values come from the existing (now deprecated) constants.
The following comparison shows the changes in service map, once the user updates the max node limit (
observability:traceAnalyticsServiceMapMaxNodes
):The next comparison shows the changes in service map if the user decides to update the maximum number of edges (
observability:traceAnalyticsServiceMapMaxEdges
) in a service map request:Issues Resolved
#2471
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.