-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
apm-data: Use representative count as event.success_count if available #119995
Conversation
x-pack/plugin/apm-data/src/main/resources/ingest-pipelines/[email protected]
Outdated
Show resolved
Hide resolved
x-pack/plugin/apm-data/src/yamlRestTest/resources/rest-api-spec/test/20_traces_ingest.yml
Show resolved
Hide resolved
x-pack/plugin/apm-data/src/main/resources/ingest-pipelines/[email protected]
Outdated
Show resolved
Hide resolved
x-pack/plugin/apm-data/src/main/resources/ingest-pipelines/[email protected]
Outdated
Show resolved
Hide resolved
Hi @rubvs, I've updated the changelog YAML for you. |
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.
thanks for covering the case I missed and also adding the corresponding test case
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 once the changelog is fixed
d1cd1c6
to
3af38c3
Compare
💔 Backport failed
You can use sqren/backport to manually backport by running |
This PR doesn't appear to have bumped the version. Was the version bumped elsewhere so that it will still be installed, or do we need a separate PR so that the version is incremented and the new pipeline installed? |
@dakrone I believe we will need to do this manually with a new PR. But I'm not sure, this is my first merge into ES. How can I check if it was bumped elsewhere? |
You can check the git blame for this line:
(which is also the value you would need to increment). It appears it hasn't been bumped since November of last year, so incrementing it would be necessary (just change it from 12 -> 13) |
Thanks, I'm also busy fixing the merge issue by checky-picking my commit, but I don't see a v8.19 tag in ES repo? |
That's because v8.19 hasn't been released yet, if you're trying to backport, you should backport to the |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Closes elastic/apm-data#388
The pipeline changes copies the representative count calculated in APM Data (see Code), into the
event.success_count
metric. The default representative count is1
.If an event, which can only be a
transaction
orspan
in this context, failed for some reason, theevent.success_count
metric is set to zero. To my understanding, we are not capturing any data related to failed events. Nor do I see any usage of something like anevent.failure_count
metric. Please correct me if I'm wrong.Along with the unit test provided, the pipeline changes was also test manually in Kibana Console:
Test
Dev Tools
paste the below pipeline simulation and run.representative_count
value is the same as that ofevent.success_count
.POST _ingest/pipeline/_simulate