-
Notifications
You must be signed in to change notification settings - Fork 528
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
Update apm-data: set a default span.representative_count
#10792
Conversation
This pull request does not have a backport label. Could you fix it @axw? 🙏
NOTE: |
I suggest to split the change for the metricset and the |
I've pulled the apmpackage changes into #10793 |
📚 Go benchmark reportDiff with the
report generated with https://pkg.go.dev/golang.org/x/perf/cmd/benchstat |
|
span.representative_count
, handle new metrics structurespan.representative_count
This pull request is now in conflicts. Could you fix it @axw? 🙏
|
This pull request is now in conflicts. Could you fix it @axw? 🙏
|
Testing this myself since I didn't actually make the representative_count change. |
Tested in conjunction with #10922. Verified with 8.9.0-BC1. |
Motivation/summary
Update to apm-data changes:
span.representative_count
now defaults to 1)modelprocessor.DroppedSpansStatsDiscarder
, now filtered in encoding)The metrics data structure has changed, so a new common ingest pipeline is added to handle these. We now send metrics as
The ingest pipeline takes care of mapping these to top-level metric fields as before.
Checklist
- [ ] Update package changelog.yml (only if changes toapmpackage
have been made)- [ ] Documentation has been updatedHow to test these changes
The only functional change should be the
span.representative_count
one. This can be tested by sending spans, with destination fields set, to the server withoutsample_rate
set, and checking that (a) the span documents indexed haverepresentative_count: 1
, and (b) service_destination metrics are produced.Related issues
Closes #3565