Skip to content
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

aggregation/spanmetrics: handle composite spans #5896

Merged
merged 1 commit into from
Aug 8, 2021

Conversation

axw
Copy link
Member

@axw axw commented Aug 5, 2021

Motivation/summary

Update spanmetrics to take into account composite spans, using the composite span count and duration. Like non-composite spans, these are also multiplied by the "representative count", i.e. the inverse sampling ratio.

Checklist

How to test these changes

  1. Send some composite spans to the server
  2. Check that the span metrics have the expected count and duration sum

Related issues

Closes #5595

Update spanmetrics to take into account composite spans,
multiplying the span count by the composite count and
using the reported composite span duration instead of
the "gross" duration.
@axw axw force-pushed the compressed-spans-metrics branch from 7d7c900 to b2099c5 Compare August 5, 2021 09:42
@axw axw marked this pull request as ready for review August 5, 2021 09:43
@axw axw requested a review from a team August 5, 2021 09:43
@apmmachine
Copy link
Contributor

apmmachine commented Aug 5, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-08-05T09:43:07.064+0000

  • Duration: 39 min 16 sec

  • Commit: b2099c5

Test stats 🧪

Test Results
Failed 0
Passed 5926
Skipped 14
Total 5940

Trends 🧪

Image of Build Times

Image of Tests

@axw axw merged commit b1bf67d into elastic:master Aug 8, 2021
@axw axw deleted the compressed-spans-metrics branch August 8, 2021 04:00
mergify bot pushed a commit that referenced this pull request Aug 8, 2021
Update spanmetrics to take into account composite spans,
multiplying the span count by the composite count and
using the reported composite span duration instead of
the "gross" duration.

(cherry picked from commit b1bf67d)

# Conflicts:
#	changelogs/head.asciidoc
axw added a commit that referenced this pull request Aug 8, 2021
#5904)

* aggregation/spanmetrics: handle composite spans (#5896)

Update spanmetrics to take into account composite spans,
multiplying the span count by the composite count and
using the reported composite span duration instead of
the "gross" duration.

(cherry picked from commit b1bf67d)

# Conflicts:
#	changelogs/head.asciidoc

* Delete head.asciidoc

* make update

Co-authored-by: Andrew Wilkins <axw@elastic.co>
@stuartnelson3
Copy link
Contributor

Confirmed with BC2, in conjunction with #5661

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[compressed spans] Adapt span metrics calculation
4 participants