Skip to content

Commit c847451

Browse files
committed
feat(ffi): add support for sentry logging
1 parent 1348525 commit c847451

File tree

5 files changed

+311
-22
lines changed

5 files changed

+311
-22
lines changed

Cargo.lock

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ ruma = { git = "https://github.com/ruma/ruma", rev = "a8fd1b0322649bf59e2a5cfc73
7878
"unstable-msc4278",
7979
] }
8080
ruma-common = { git = "https://github.com/ruma/ruma", rev = "a8fd1b0322649bf59e2a5cfc73ab4fe46b21edd7" }
81+
sentry = "0.36.0"
82+
sentry-tracing = "0.36.0"
8183
serde = "1.0.217"
8284
serde_html_form = "0.2.7"
8385
serde_json = "1.0.138"

bindings/matrix-sdk-ffi/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Breaking changes:
1919

2020
Additions:
2121

22+
- Support for adding a Sentry layer to the FFI bindings has been added. Only `tracing` statements with
23+
the field `sentry=true` will be forwarded to Sentry, in addition to default Sentry filters.
2224
- Add room topic string to `StateEventContent`
2325
- Add `UploadSource` for representing upload data - this is analogous to `matrix_sdk_ui::timeline::AttachmentSource`
2426
- Add `Client::observe_account_data_event` and `Client::observe_room_account_data_event` to

bindings/matrix-sdk-ffi/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ matrix-sdk-ui = { workspace = true, features = ["uniffi"] }
3434
mime = "0.3.16"
3535
once_cell = { workspace = true }
3636
ruma = { workspace = true, features = ["html", "unstable-unspecified", "unstable-msc3488", "compat-unset-avatar", "unstable-msc3245-v1-compat", "unstable-msc4278"] }
37+
sentry = { workspace = true }
38+
sentry-tracing = { workspace = true }
3739
serde = { workspace = true }
3840
serde_json = { workspace = true }
3941
thiserror = { workspace = true }

0 commit comments

Comments
 (0)