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: Update Sentry to v0.35 #14

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ license = "MIT OR Apache-2.0"
name = "sentry-rust-minidump"
readme = "README.md"
repository = "https://github.com/timfish/sentry-rust-minidump"
version = "0.8.0"
version = "0.9.0"

[dependencies]
minidumper-child = "0.2"
sentry = "0.34"
thiserror = "1"
sentry = "0.35"
thiserror = "2"
serde = { version = "1", features = ["derive"], optional = true }
serde_json = { version = "1", optional = true }

[dev-dependencies]
actix-rt = "2.7"
sadness-generator = "0.5"
sentry-test-server = {git = "https://github.com/timfish/sentry-test-server.git", rev = "3845172"}
sadness-generator = "0.6"
sentry-test-server = {git = "https://github.com/timfish/sentry-test-server.git", rev = "4d53bfe"}

[features]
ipc = [ "dep:serde", "dep:serde_json"]
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# `sentry-rust-minidump`
# `sentry-rust-minidump`

![Master branch integration test status](https://img.shields.io/github/actions/workflow/status/timfish/sentry-rust-minidump/test.yml?label=Integration%20Tests&style=for-the-badge)

Uses the [`minidumper-child`](https://github.com/timfish/minidumper-child) crate
to capture minidumps from a separate process and sends them to Sentry as
attachments via the Sentry Rust SDK.
attachments via the Sentry Rust SDK.

`sentry_rust_minidump::init` starts the current executable again with an argument that
causes it to start in crash reporter mode. In this mode it waits for minidump
notification from the main app process and handles writing and sending of the
minidump file as an attachment to Sentry.
`sentry_rust_minidump::init` starts the current executable again with an
argument that causes it to start in crash reporter mode. In this mode it waits
for minidump notification from the main app process and handles writing and
sending of the minidump file as an attachment to Sentry.

Everything before `sentry_rust_minidump::init` is called in both the main and
crash reporter processes and should configure and start Sentry. Everything
after `sentry_rust_minidump::init` is only called in the main process to run
your application code.
crash reporter processes and should configure and start Sentry. Everything after
`sentry_rust_minidump::init` is only called in the main process to run your
application code.

```toml
[dependencies]
sentry = "0.34"
sentry-rust-minidump = "0.8"
sentry = "0.35"
sentry-rust-minidump = "0.9"
```

```rust
Expand All @@ -44,7 +44,7 @@ fn main() {

By default there is no scope synchronisation from the app process to the crash
reporter process. This means that native crash event will be missing
breadcrumbs, user, tags or extra added to the scope in the app.
breadcrumbs, user, tags or extra added to the scope in the app.

When the `ipc` feature is enabled, you can send scope updates to the crash
reporter process:
Expand All @@ -64,4 +64,4 @@ fn main() {

// Don't drop crash_reporter or the reporter process will close!
}
```
```
Loading