Repository navigation
fix(profiling): align frame limit with backend location cap - #19076
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 6 commits intoJul 16, 2026
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 6 commits into
gh-worker-dd-mergequeue-cf854d[bot] merged 6 commits into
Conversation
Circular import analysis
|
Codeowners resolved as |
Contributor
🎉 All green!🧪 All tests passed 🔄 Datadog auto-retried 1 job - 1 passed on retry 🔗 Commit SHA: b87c4c6 | Docs | Datadog PR Page | Give us feedback! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3a139908de
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
KowalskiThomas
approved these changes
Jul 16, 2026
Co-authored-by: Thomas Kowalski <thomas.kowalski@datadoghq.com>
gh-worker-dd-mergequeue-cf854d
Bot
deleted the
taegyunkim/prof-14213-backend-max-frames
branch
July 16, 2026 20:54
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.
Description
Aligns profiling frame-limit configuration with the backend's 600-location limit.
<N frames omitted>indicator on truncated stacksDD_PROFILING_MAX_FRAMESto 599 inddtrace.internal.settings.profilingJIRA: PROF-14213
Testing
TestMaxFramesConfigon Python 3.9, all 6 tests passed. The editable install also rebuilt the native extension successfully.scripts/lint checks, targeted formatting, spelling, andgit diff --check. Broad lint checks reported only existing repository warnings.Risks
Configurations between 513 and 599 can now retain more frames than before. This matches the backend contract but can slightly increase per-sample work for users who explicitly configure values in that range.
Values of 600 and above are now clamped to 599 at configuration load instead of reaching individual collectors unchanged. This leaves one location for the omitted-frame indicator so truncated samples remain within the backend's 600-location cap.
Additional Notes
This PR is the base of stacked #19073 and #19085, which propagate the limit into Echion and bound task-aware stack collection.