feat: Aggregate tasks into chunks sooner, then drop the lock by astuyve · Pull Request #889 · DataDog/datadog-lambda-extension
Navigation Menu
{{ message }}
DataDog / datadog-lambda-extension Public
- Notifications You must be signed in to change notification settings
- Fork 17
Merged
feat: Aggregate tasks into chunks sooner, then drop the lock#889
feat: Aggregate tasks into chunks sooner, then drop the lock#889
Conversation
Copy link
Contributor
astuyve
commented
Oct 6, 2025
astuyve
commented
Spawning off the send tasks is usually very fast but occasionally tokio will task switch us and we'll end up waiting for coalesce_traces which is a longer blocking operation so we try to aggregate all the batches first then drop the lock as fast as we can. Note that we moved the lock hold into a closure so we removed the explicit drop here
astuyve
requested a review
from a team
as a code owner
duncanista approved these changes Oct 7, 2025
astuyve
deleted the
aj/drop-lock-sooner
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment