Skip to content

Commit 9b8b012

Browse files
chore(debug-files): Add deprecation notice for non-chunked uploads (#2836)
### Description Support for non-chunked uploads debug file uploads will be removed in the next major release. Sentry self-hosted versions [since 10.0.0](getsentry/sentry@209e42f), which was released six years ago, support chunked uploads for debug file uploads ### Issues - Resolves #2834 - Resolves CLI-183 <!-- #### Reminders - Add GH Issue ID _&_ Linear ID (if applicable) - PR title should use [conventional commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type) style (`feat:`, `fix:`, `ref:`, `meta:`) - For external contributors: [CONTRIBUTING.md](https://github.com/getsentry/sentry-cli/blob/master/CONTRIBUTING.md), [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord community](https://discord.gg/Ww9hbqr) -->
1 parent f784324 commit 9b8b012

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/utils/dif_upload/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,7 @@ fn upload_in_batches(
13261326
}
13271327

13281328
/// Uploads debug info files using the legacy endpoint.
1329+
#[deprecated = "this non-chunked upload mechanism is deprecated in favor of upload_difs_chunked"]
13291330
fn upload_difs_batched(options: &DifUpload) -> Result<Vec<DebugInfoFile>> {
13301331
// Search for debug files in the file system and ZIPs
13311332
let found = search_difs(options)?;
@@ -1647,6 +1648,16 @@ impl<'a> DifUpload<'a> {
16471648
}
16481649

16491650
self.validate_capabilities();
1651+
1652+
log::warn!(
1653+
"[DEPRECATION NOTICE] Your Sentry server does not support chunked uploads for debug \
1654+
files. Falling back to deprecated upload method. Support for this deprecated upload \
1655+
method will be removed in Sentry CLI 3.0.0. Please upgrade your Sentry server, or if \
1656+
you cannot upgrade, pin your Sentry CLI version to 2.x, so you don't get upgraded \
1657+
to 3.x when it is released."
1658+
);
1659+
1660+
#[expect(deprecated, reason = "fallback to legacy upload")]
16501661
Ok((upload_difs_batched(&self)?, false))
16511662
}
16521663

0 commit comments

Comments
 (0)