-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apm] peer.service aggregation for trace stats, option to compute sta…
…ts based on span.kind (#16103) * [apm] initial commit; add peer.service to stats * [apm] re-generate msgpack to account for peer.service * [apm] add tests for peer.service aggregation * [apm] add comment to explain peer_service in proto * [apm] comment revision * [apm] add release notes * Update pkg/trace/stats/aggregation.go Co-authored-by: Diana Shevchenko <40775148+dianashevchenko@users.noreply.github.com> * Update pkg/trace/stats/aggregation.go Co-authored-by: Diana Shevchenko <40775148+dianashevchenko@users.noreply.github.com> * [apm] add consideration of span.kind == INTERNAL for calculating stats * [apm] consider CLIENT/PRODUCER specifically rather than INTERNAL for span.kind; add more tests * [apm] remove incorrect comment * [apm] correct tests, update release notes * [apm] RemoteOutbound -> RemoteOutgoing * [apm] remove unnecessary newlines * [apm] update peer.service test to use a more realistic example for its test case * Update pkg/trace/stats/concentrator.go Co-authored-by: Peter Kalmakis <peter.kalmakis@datadoghq.com> * Update releasenotes/notes/add-peer-service-for-trace-stats-225f1b90c9627c18.yaml Co-authored-by: Austin Lai <76412946+alai97@users.noreply.github.com> * Update releasenotes/notes/add-peer-service-for-trace-stats-225f1b90c9627c18.yaml Co-authored-by: Austin Lai <76412946+alai97@users.noreply.github.com> * [apm] fix bug from remote commit * [apm] remove consideration of span.kind for trace stats computation * [apm] add normalization for peer.service * [apm] add concentrator configuration to enable/disable peer.service stats aggregation * [apm] ensure peer.service is exported from client stats aggregator as well * [apm] update config_template.yaml * [apm] further clarify effect of disabling peer.service stats aggregation * [apm] fix test failures * [apm] rework configuration of peer.service, add back extra aggregators for concentrator * [apm] set peer service aggregation to false by default, ensure config is loaded properly * [apm] revise variable name to be consistent, add check for peer service aggregation in client stats aggregator * [apm] add logic to compute stats based on specific span.kind values * [apm] add config for option to enable stats computation by span.kind * [apm] update documentation and release notes * Update cmd/trace-agent/config/config.go Co-authored-by: Ahmed Mezghani <38987709+ahmed-mez@users.noreply.github.com> * Update pkg/trace/traceutil/span.go Co-authored-by: Ahmed Mezghani <38987709+ahmed-mez@users.noreply.github.com> * [apm] rename peer service aggregation config field * [apm] add more test cases to ensure case insensitivity for span.kind check * [apm] move span.kind check func implementation to concentrator.go * Update pkg/trace/stats/concentrator.go Co-authored-by: Peter Kalmakis <peter.kalmakis@datadoghq.com> * [apm] finish move of span.kind check func * [apm] go back to setting a bool flag for peer.service in concentrator * [apm] add back ExtraAggregators for info test case * [apm] fix testutil fixture BucketWithSpans * [apm] move peer.service aggregation check back into NewAggregationFromSpan * [apm] change CSA to use bool for peer svc aggregation as well * [apm] remove unused const * [apm] update guidance on new config options * [apm] add small test for bucket aggregation key creation and peer.service in CSA * [apm] remove unused field * [apm] fix fuzz test * [apm] fix stats info tests --------- Co-authored-by: Diana Shevchenko <40775148+dianashevchenko@users.noreply.github.com> Co-authored-by: Peter Kalmakis <peter.kalmakis@datadoghq.com> Co-authored-by: Austin Lai <76412946+alai97@users.noreply.github.com> Co-authored-by: Ahmed Mezghani <38987709+ahmed-mez@users.noreply.github.com>
- Loading branch information
1 parent
68b471b
commit 70820e3
Showing
28 changed files
with
1,170 additions
and
227 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.