Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(server): accept compressed minidumps #4029

Merged
merged 11 commits into from
Sep 25, 2024
Merged
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

- Add a config option to add default tags to all Relay Sentry events. ([#3944](https://github.com/getsentry/relay/pull/3944))
- Automatically derive `client.address` and `user.geo` for standalone spans. ([#4047](https://github.com/getsentry/relay/pull/4047))
- Add support for uploading compressed (gzip, xz, zstd, bzip2) minidumps. ([#4029](https://github.com/getsentry/relay/pull/4029))
- Configurable span.op inference. ([#4056](https://github.com/getsentry/relay/pull/4056))

**Internal:**
Expand Down
45 changes: 44 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ bindgen = "0.70.1"
brotli = "6.0.0"
bytecount = "0.6.0"
bytes = "1.4.0"
bzip2 = "0.4.4"
cadence = "1.4.0"
chrono = { version = "0.4.31", default-features = false, features = [
"std",
Expand Down Expand Up @@ -104,6 +105,7 @@ ipnetwork = "0.20.0"
itertools = "0.13.0"
json-forensics = "0.1.1"
lru = "0.12.4"
liblzma = "0.3.4"
maxminddb = "0.24.0"
memchr = "2.7.4"
md5 = "0.7.0"
Expand Down
5 changes: 3 additions & 2 deletions relay-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ processing = [
"dep:minidump",
"dep:symbolic-common",
"dep:symbolic-unreal",
"dep:zstd",
"relay-cardinality/redis",
"relay-config/processing",
"relay-kafka/producer",
Expand All @@ -39,6 +38,7 @@ arc-swap = { workspace = true }
backoff = { workspace = true }
brotli = { workspace = true }
bytes = { workspace = true, features = ["serde"] }
bzip2 = { workspace = true }
chrono = { workspace = true, features = ["clock"] }
data-encoding = { workspace = true }
flate2 = { workspace = true }
Expand All @@ -48,6 +48,7 @@ hashbrown = { workspace = true }
hyper-util = { workspace = true }
itertools = { workspace = true }
json-forensics = { workspace = true }
liblzma = { workspace = true }
mime = { workspace = true }
minidump = { workspace = true, optional = true }
multer = { workspace = true }
Expand Down Expand Up @@ -121,7 +122,7 @@ tower-http = { workspace = true, default-features = false, features = [
] }
url = { workspace = true, features = ["serde"] }
uuid = { workspace = true, features = ["v5"] }
zstd = { workspace = true, optional = true }
zstd = { workspace = true }
semver = { workspace = true }

[dev-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions relay-server/src/endpoints/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ pub enum BadStoreRequest {
#[error("missing minidump")]
MissingMinidump,

#[error("invalid compression container")]
InvalidCompressionContainer(#[source] std::io::Error),

#[error("invalid event id")]
InvalidEventId,

Expand Down
Loading
Loading