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

DroppedSpanStats: do not flatten duration #2178

Merged
merged 6 commits into from
Sep 20, 2023

Conversation

gregkalapos
Copy link
Contributor

@gregkalapos gregkalapos commented Sep 7, 2023

APM Server expects objects and flattening those as the agent did prior to this PR is not accepted by the server.

Furthermore, in APM Server 8.9.x, there was an issue that in such cases (specifically when the duration field was empty (or sending it flattened)) caused a panic. This was fixed in 8.10, but the APM Server would still ignored the flattened duration object on dropped_spans_stats.

Therefore, this PR changes DroppedSpanStats.cs to use sub-objects for the Duration object. We do this in all other cases as well.

APM Server expects objects and flattening those as the agent did prior to this PR is not accepted by the server.
@gregkalapos gregkalapos self-assigned this Sep 7, 2023
@gregkalapos gregkalapos changed the title DroppedSpanStats: agent does not flatten duration DroppedSpanStats: do not flatten duration Sep 7, 2023
Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, this looks complete but is still in draft?

@gregkalapos gregkalapos marked this pull request as ready for review September 20, 2023 12:24
@Mpdreamz Mpdreamz merged commit c61d818 into elastic:main Sep 20, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants