Repository navigation
Conversation
Use the tracer flush contract within the remaining Lambda budget while preserving handler outcomes and warm providers. Environment: Datadog workspace Co-Authored-By: Codex GPT-6 <noreply@localhost>
This branch has not been deployed
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Flush pending feature flag evaluation and exposure EVP telemetry through the tracer's versioned internal contract after every invocation, including handler errors and failures in unrelated cleanup. Keep providers and their workers available for warm invocations.
DD_FEATURE_FLAG_FLUSH_TIMEOUT_MSdefaults to 500 ms. The wait is capped at remaining invocation time minus a 100 ms safety margin. Older tracers or unused OpenFeature safely skip the capability. Incomplete flushes produce debug diagnostics without replacing the handler's response or original exception.Motivation
Short invocations can finish before background telemetry flush intervals. Part 2 of FFL-3412, depending on dd-trace-py #21135.
Testing Guidelines
tests/integration/FEATURE_FLAG_FLUSH.md.Additional Notes
Draft pending tracer release coordination and a deployed ingestion test. AWS sandbox credential acquisition returned SSO 403; no deployed smoke test has been completed. Record the first supported published tracer, Lambda library and layer versions together before announcing support. The default layer build must include the tracer capability; this PR intentionally does not invent an unreleased dependency version.
Timeout stops waiting, not the underlying send; delivery remains best effort. This PR is submitted from a personal fork because upstream push access was denied.
Types of Changes
Check all that apply