feat(celery): Respect data_collection.queues option for task args/kwargs - #6934
Merged
Conversation
Gate celery-job args/kwargs in error event extras behind the experimental data_collection.queues option. When data_collection is configured it takes precedence over send_default_pii; with queues: False the args/kwargs keys are omitted entirely.
Contributor
Codecov Results 📊✅ 98926 passed | ⏭️ 6772 skipped | Total: 105698 | Pass Rate: 93.59% | Execution Time: 359m 12s 📊 Comparison with Base Branch
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2506 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 89.84% 89.83% -0.01%
==========================================
Files 193 193 —
Lines 24587 24630 +43
Branches 8744 8768 +24
==========================================
+ Hits 22088 22124 +36
- Misses 2499 2506 +7
- Partials 1400 1400 —Generated by Codecov Action |
alexander-alderman-webb
approved these changes
Jul 29, 2026
mgaligniana
pushed a commit
to mgaligniana/sentry-python
that referenced
this pull request
Aug 9, 2026
…rgs (getsentry#6934) Gate celery-job args/kwargs in error event extras behind the experimental data_collection.queues option. When data_collection is configured it takes precedence over send_default_pii; with queues: False the args/kwargs keys are omitted entirely. Refs PY-2591 Refs getsentry#6751
6 tasks
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.
Gate celery-job args/kwargs in error event extras behind the experimental data_collection.queues option. When data_collection is configured it takes precedence over send_default_pii; with queues: False the args/kwargs keys are omitted entirely.
Refs PY-2591
Refs #6751