feat(difs): Add Objectstore-only DIF creation - #120183
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 357e027. Configure here.
Use debug_files instead of debug-files so create_objectstore_dif_from_id matches create_dif_from_id and other debug-file storage metrics. Co-authored-by: Lorenzo Cian <lcian@users.noreply.github.com>
jan-auer
left a comment
There was a problem hiding this comment.
From #120184, can we bring in the objectstore-debugfiles-exclusive-write feature flag and then consolidate the implementation so that:
- When exclusive-write is enabled, we write to only objectstore
- When double-write is enabled, we write to both
- Otherwise, we write to only filestore
It looks like if we slightly refactor the interfaces going into detect_dif_from_id, we can do these checks fully internally.
# Conflicts: # src/sentry/models/debugfile.py

Introduces a new feature flag
organizations:objectstore-debugfiles-exclusive-writethat creates Objectstore-only debug files.Restructures
create_dif_from_idso that it handles all possible DIF creation cases (legacyFile, double write, Objectstore-only) internally based on the active feature flags.This means that legacy DIF uploads (non-chunked and DIF uploads) automatically get the correct behavior as they call into this function.
Chunk-upload+assemble are updated in a follow-up PR.
Refs FS-365