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

[exporter/datadog]: updated remove sublayer stats calc and mutex (3rd times a charm) #3531

Merged

Conversation

ericmustin
Copy link
Contributor

Description:

This PR is an update of #2478 and #3378

It removes sublayer stats calculation of trace payloads from the datadogexporter, as these are now calculated on the datadog backend. This follows work done in the datadog-agent, here: DataDog/datadog-agent#7450.

Removing this computation will improve performance and is an incremental step toward enabling support of distributed sublayer metric calculations.

Originally we had planned to hold off on shipping this until some broader work around the exportable/stats package itself was complete, which would allow us to use more up to date code exported from the datadog-agent...but given some user feedback on CPU consumption, I feel it makes sense to ship this now and get the benefit.

Update: I've confirmed internally within my organization that the practical implications of using a nil value in the old payload is functionally equivalent to the updated stats payload, and that sublayer statistics/metrics will be generated correctly by passing a nil value, which was the concern that caused us to close this PR previously as described here: #3378 (comment)

Link to tracking Issue:

Testing: removed all sublayer calc references and tests from test suite

Documentation:

@ericmustin ericmustin requested a review from mx-psi as a code owner May 25, 2021 21:17
@ericmustin ericmustin requested a review from a team May 25, 2021 21:17
@ericmustin ericmustin changed the title [exporter/datadog]: updated remove sublayer stats calc and mutex [exporter/datadog]: updated remove sublayer stats calc and mutex (3rd times a charm) May 25, 2021
@mx-psi mx-psi assigned mx-psi and unassigned Aneurysm9 May 26, 2021
Co-authored-by: Pablo Baeyens <pablo.baeyens@datadoghq.com>
@bogdandrutu bogdandrutu merged commit 2696783 into open-telemetry:main May 26, 2021
@mx-psi mx-psi deleted the datadog_updated_refactor_stats_payload branch May 26, 2021 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants