-
Notifications
You must be signed in to change notification settings - Fork 29
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
event.success_count
metric should use representative count
#388
Comments
moving this to it106 |
was moved to it-107 |
I initially thought that we can make this change in two different places:
However, after some investigation,
So making the change in the ES pipeline, rather than apm-data, seems like the correct thing to do. |
Okay. So this PR is almost merged, finally. There is a few mental headaches that I had to fully understand all the components at play. Maybe my thinking here is overcomplicated, but I'll outline them here for completeness anyways:
In summary, things would have been much easier if I understood the "ownership" of fields in our data models. Since ownership can been seen as "maintaining locality". An idea Rust leverages to the extreme. In this case,
With all this being said, it becomes very clear why this bug originated to start with. This was not as simple as I expected. Moreover, once this PR is merged into ES. I have to go make another PR in APM Server to compensate for this, see TestIngestPipelineEventSuccessCount, before closing this issue. So there is a 3rd codebase involved. |
@rubvs there are probably also some historical reasons; but one reason I would highlight for the split between logic implemented in the In general, I highly encourage you to trigger conversations around |
Created a new issue to update the unit test in APM Server after the next release, see elastic/apm-server#15838 |
event.success_count
attribute is populated using ingest pipeline defined in apm-data plugin. The attribute currently is populated using1
for success spans and0
for failed spans, however, when we aggregate this metric, we use representative count (ref) which should be more apt for what we do with this metric.The issue is about fixing the ingest pipeline to use representative count if defined,
1
otherwise in the ingest pipeline for cases when theevent.outcome
issuccess
.Related to: elastic/opentelemetry-lib#112
The text was updated successfully, but these errors were encountered: