Skip to content
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: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## v0.9.0

- feat: Update `sentry` to v0.49.5 and `@sentry/browser` to v11 (#49)
- feat: Tag events with the process, webview and window they came from (#42)
- feat: Normalise web-view URLs to `app:///` (#43)
- feat: Add breadcrumbs for Tauri app, window and webview events (#44)
- feat: Sync scope from the webview to the Rust SDK (#45)
- feat: Add app, Tauri runtime, webview and screen context. Add the `wry` feature, on by default, which adds the webview version to the `browser` context (#46)
- feat: Capture webview process crashes. Add the `webview-crashes` feature, on by default, which enables `wry` and the `release-health` feature of `sentry` (#47)

## v0.8.0

- feat: Add `tauri_plugin_sentry::Sentry`, which is both a Tauri plugin and a Sentry integration. Add a clone to `sentry::ClientOptions` before `sentry::init` and pass the original to `tauri::Builder::plugin`. The integration adds `tauri` to the SDK integrations and adds the `cargo:tauri-plugin-sentry` package to the SDK metadata of events, which includes minidump events from the crash reporter process. `init`, `init_with_options` and `init_with_no_injection` still work. (#41)
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "MIT OR Apache-2.0"
name = "tauri-plugin-sentry"
readme = "README.md"
repository = "https://github.com/timfish/sentry-tauri"
version = "0.8.0"
version = "0.9.0"
links = "tauri-plugin-sentry"
exclude = ["/examples", "/node_modules", "/target", "/test"]

Expand All @@ -23,7 +23,7 @@ webview-crashes = [

[dependencies]
base64 = "0.23"
sentry = { version = "0.49", default-features = false }
sentry = { version = "0.49.5", default-features = false }
serde = "1"
serde_json = "1"
tauri = { version = "2.12", default-features = false }
Expand All @@ -46,4 +46,4 @@ webkit2gtk = { version = "2", features = ["v2_20"], optional = true }
tauri-plugin = { version = "2", features = ["build"] }

[dev-dependencies]
sentry = { version = "0.49", default-features = false, features = ["test"] }
sentry = { version = "0.49.5", default-features = false, features = ["test"] }
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Add `sentry` and `tauri-plugin-sentry` to dependencies in `Cargo.toml`:

```toml
[dependencies]
sentry = "0.49"
tauri-plugin-sentry = "0.8"
sentry = "0.49.5"
tauri-plugin-sentry = "0.9"
```

Run one of these commands to add the capabilities:
Expand Down Expand Up @@ -70,7 +70,7 @@ If your app does not use the wry runtime, turn off the default features and
enable only `minidump`:

```toml
tauri-plugin-sentry = { version = "0.8", default-features = false, features = ["minidump"] }
tauri-plugin-sentry = { version = "0.9", default-features = false, features = ["minidump"] }
```

This also turns off `webview-crashes`. Without `wry`, events have no
Expand Down
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ export const defaultOptions = {
],
transport: makeRendererTransport,
beforeBreadcrumb: sendBreadcrumbToRust,
// The Rust SDK cannot parse streamed span envelope items
traceLifecycle: 'static',
};
2 changes: 1 addition & 1 deletion dist/inject.min.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion dist/normalize.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ export declare function normalizeUrls(event: Event, origin: string): Event;
* Tauri serves the app from `tauri://localhost` on macOS, iOS and Linux and
* from `http://tauri.localhost` on Windows and Android.
*/
export declare const normalizeUrlsIntegration: () => import("@sentry/core").Integration;
export declare const normalizeUrlsIntegration: () => import("@sentry/core").Integration & {
name: string;
};
2 changes: 1 addition & 1 deletion examples/basic-app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ version = "0.1.0"
tauri-build = { version = "2", features = [] }

[dependencies]
sentry = "0.49"
sentry = "0.49.5"
sadness-generator = "0.6"
tauri-plugin-sentry = { path = "../../.." }
serde = { version = "1.0", features = ["derive"] }
Expand Down
2 changes: 2 additions & 0 deletions js/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ export const defaultOptions: BrowserOptions = {
],
transport: makeRendererTransport,
beforeBreadcrumb: sendBreadcrumbToRust,
// The Rust SDK cannot parse streamed span envelope items
traceLifecycle: 'static',
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tauri-plugin-sentry-api",
"version": "0.8.0",
"version": "0.9.0",
"description": "Tauri Plugin for Sentry",
"license": "Apache-2.0 OR MIT",
"files": [
Expand All @@ -21,8 +21,8 @@
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^16.0.1",
"@sentry/browser": "^10.8.0",
"@sentry/core": "^10.8.0",
"@sentry/browser": "^11.10.0",
"@sentry/core": "^11.10.0",
"rollup": "^4.50.0",
"@rollup/plugin-terser": "^0.4.4",
"typescript": "^5.1.6",
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tauri-build = { version = "2", features = [] }

[dependencies]
sadness-generator = "0.6"
sentry = "0.49"
sentry = "0.49.5"
tauri = { version = "2", features = ["custom-protocol"] }
tauri-plugin-sentry = { path = "../../../.." }

Expand Down
89 changes: 52 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -441,51 +441,61 @@
resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.64.6.tgz#28210903891d003eccc5f769671787d92f54fb13"
integrity sha512-9/c9PWdr5GCIHkkxiHM1HjNBQMVdftP4O8QTcoUAaRza2FSqJ4axbf8QAnBuE6BIGQDl71SaRPeDdDYid5ecTw==

"@sentry-internal/browser-utils@10.8.0":
version "10.8.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-10.8.0.tgz#a028e8067566cb80026c112cd62b5c119415e337"
integrity sha512-FaQX9eefc8sh3h3ZQy16U73KiH0xgDldXnrFiWK6OeWg8X4bJpnYbLqEi96LgHiQhjnnz+UQP1GDzH5oFuu5fA==
"@sentry/browser-utils@11.10.0":
version "11.10.0"
resolved "https://registry.yarnpkg.com/@sentry/browser-utils/-/browser-utils-11.10.0.tgz#25df36858b270a9fc361e160f3185e59457f856f"
integrity sha512-P/bYHTgj76sYBYCZa524YoZ/hZac2XCW3i3qShrMXnh7s63x1cweUjD7BDVDb0L/lGMwtuObuZeRnCif4hWLNg==
dependencies:
"@sentry/core" "10.8.0"

"@sentry-internal/feedback@10.8.0":
version "10.8.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-10.8.0.tgz#fa562fe64c806d429f4c33acd8e7ca0f929053f3"
integrity sha512-n7SqgFQItq4QSPG7bCjcZcIwK6AatKnnmSDJ/i6e8jXNIyLwkEuY2NyvTXACxVdO/kafGD5VmrwnTo3Ekc1AMg==
"@sentry/conventions" "^0.29.0"
"@sentry/core" "11.10.0"
web-vitals "^6.2.3"

"@sentry/browser@^11.10.0":
version "11.10.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-11.10.0.tgz#e88ca4285e666dc821ee77c682ee6c5f5d5dda38"
integrity sha512-kU8Inx3K/PaaDGqTu4lBW8XCYNsYNTwwPIZNIRDas/mTXtepXpM7M0KxxrTSZXBTWX0RfDU4t7vsL9ay0o4+NQ==
dependencies:
"@sentry/core" "10.8.0"

"@sentry-internal/replay-canvas@10.8.0":
version "10.8.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-10.8.0.tgz#5adc2f3aa7036fed46415fcb6eabd4d8a6d335e3"
integrity sha512-jC4OOwiNgrlIPeXIPMLkaW53BSS1do+toYHoWzzO5AXGpN6jRhanoSj36FpVuH2N3kFnxKVfVxrwh8L+/3vFWg==
"@sentry/browser-utils" "11.10.0"
"@sentry/conventions" "^0.29.0"
"@sentry/core" "11.10.0"
"@sentry/feedback" "11.10.0"
"@sentry/replay" "11.10.0"
"@sentry/replay-canvas" "11.10.0"

"@sentry/conventions@^0.29.0":
version "0.29.0"
resolved "https://registry.yarnpkg.com/@sentry/conventions/-/conventions-0.29.0.tgz#37599c2ca3fad40638e03e8245f7a5d5fef9b6ba"
integrity sha512-kYq9/HJ/l6MYP/srIc20dy1W4mWyJfCF0OWFF+RhBGZwyr/wCmtabRFKyw7kqM+DTwZXQOjSTSZUcJhDowcInQ==

"@sentry/core@11.10.0", "@sentry/core@^11.10.0":
version "11.10.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-11.10.0.tgz#33473062514bfd54b8b5751760ac290d7add5641"
integrity sha512-l/OtTo1v+TQgZtHG2Q5N4IX+gFdAE1tZ27K/P21UCzJglWk54TPEm+d9T2lulPqMK06kZcLwDgRAhE2GO4YS5w==
dependencies:
"@sentry-internal/replay" "10.8.0"
"@sentry/core" "10.8.0"
"@sentry/conventions" "^0.29.0"

"@sentry-internal/replay@10.8.0":
version "10.8.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-10.8.0.tgz#3f14329924ff744611296ce4e9588530e5f168e4"
integrity sha512-9+qDEoEjv4VopLuOzK1zM4LcvcUsvB5N0iJ+FRCM3XzzOCbebJOniXTQbt5HflJc3XLnQNKFdKfTfgj8M/0RKQ==
"@sentry/feedback@11.10.0":
version "11.10.0"
resolved "https://registry.yarnpkg.com/@sentry/feedback/-/feedback-11.10.0.tgz#571d72e0a47e4068ea1a9cd96cd09e075062ecbe"
integrity sha512-jZqxVHPoUeZ6W7xSlhJdTMuM/GUJLA/K4U9OFmkP+g+TvtXhdwWxeiT23m2Wm5NmTHjaB07jSc05ayuflD8ETw==
dependencies:
"@sentry-internal/browser-utils" "10.8.0"
"@sentry/core" "10.8.0"
"@sentry/core" "11.10.0"

"@sentry/browser@^10.8.0":
version "10.8.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-10.8.0.tgz#f33b95f48e3967db661db1666ad3e1dc0a6922fb"
integrity sha512-2J7HST8/ixCaboq17yFn/j/OEokXSXoCBMXRrFx4FKJggKWZ90e2Iau5mP/IPPhrW+W9zCptCgNMY0167wS4qA==
"@sentry/replay-canvas@11.10.0":
version "11.10.0"
resolved "https://registry.yarnpkg.com/@sentry/replay-canvas/-/replay-canvas-11.10.0.tgz#b219df5255c18e1441f806bf85973bfeb8c1545b"
integrity sha512-i0Fsjbl8ChzTMntLVhZvn72+p395tGNtL4iflsprnzPhTVSOGW9IYgUYfO87UcujUf5CmYn7ELBKUc5V0Ipfdg==
dependencies:
"@sentry-internal/browser-utils" "10.8.0"
"@sentry-internal/feedback" "10.8.0"
"@sentry-internal/replay" "10.8.0"
"@sentry-internal/replay-canvas" "10.8.0"
"@sentry/core" "10.8.0"
"@sentry/core" "11.10.0"
"@sentry/replay" "11.10.0"

"@sentry/core@10.8.0", "@sentry/core@^10.8.0":
version "10.8.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-10.8.0.tgz#71f71f8ecb5a06c41a426f5ccee2d9767b7d7cfd"
integrity sha512-scYzM/UOItu4PjEq6CpHLdArpXjIS0laHYxE4YjkIbYIH6VMcXGQbD/FSBClsnCr1wXRnlXfXBzj0hrQAFyw+Q==
"@sentry/replay@11.10.0":
version "11.10.0"
resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-11.10.0.tgz#f2909afa8dc32195ee7911d6a3645b4bbeb96082"
integrity sha512-0rcg+43tkO278VyrKcbmg0JQm2yxuguXKLbr9ieiNsynaxj22JC8baie4Uxizf2jM2ukfqA3O+o0Pbqaed8P2Q==
dependencies:
"@sentry/browser-utils" "11.10.0"
"@sentry/core" "11.10.0"

"@tauri-apps/api@2.0.0-beta.8":
version "2.0.0-beta.8"
Expand Down Expand Up @@ -1048,6 +1058,11 @@ vitest@^3.2.4:
vite-node "3.2.4"
why-is-node-running "^2.3.0"

web-vitals@^6.2.3:
version "6.2.3"
resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-6.2.3.tgz#8581188b2a46875d04b9536ab06b352e3a0468b8"
integrity sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==

why-is-node-running@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/why-is-node-running/-/why-is-node-running-2.3.0.tgz#a3f69a97107f494b3cdc3bdddd883a7d65cebf04"
Expand Down
Loading