Skip to content

Commit

Permalink
Use custom release name for sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
FirelightFlagboy committed Oct 17, 2024
1 parent 6542666 commit 38a418f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bindings/electron/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ static SENTRY_CLIENT_GUARD: OnceCell<ClientInitGuard> = OnceCell::new();

fn init_sentry() {
SENTRY_CLIENT_GUARD.get_or_init(|| {
let version = std::option_env!("CARGO_PKG_VERSION").expect("Missing cargo version");
sentry::init((
SENTRY_DSN_LIBPARSEC,
ClientOptions {
release: sentry::release_name!(),
release: Some(std::borrow::Cow::Owned(format!(
"parsec-electron@{version}"
))),
..Default::default()
},
))
Expand Down

0 comments on commit 38a418f

Please sign in to comment.