Skip to content

fix(traces): Drop aggregated trace data on API key failure to reduce memory usage #787

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

litianningdatadog
Copy link
Contributor

@litianningdatadog litianningdatadog commented Aug 15, 2025

In case of API key failure, we should drop the aggregated tracing data as there is no way to send them back. By doing so we expect to reduce the memory wasted on the unsent data.
Tested with fullinstrument stack in self-monitor repo. Manifest. Below chart shows the memory usage reduced with the proposed change.
image

@litianningdatadog litianningdatadog requested a review from a team as a code owner August 15, 2025 18:35
@duncanista duncanista changed the title fix: Drop aggregated trace data on API key failure to reduce memory usage fix(traces): Drop aggregated trace data on API key failure to reduce memory usage Aug 15, 2025
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.

2 participants