sentry-rust icon indicating copy to clipboard operation
sentry-rust copied to clipboard

Sentry Install instructions For Rust not Working

Open nakul1010 opened this issue 4 months ago • 1 comments

Environment

MacOs rust version: rustc 1.82.0-nightly (2cbbe8b8b 2024-07-28)

Steps to Reproduce

  • Create a new project with Rust as platform
  • Follow the install instructions to configure the rust SDK to emit a panic My code:
fn main() {
    let _guard = sentry::init(("https://xxxx", sentry::ClientOptions {
        release: sentry::release_name!(),
        ..Default::default()
    }));
    let uid = sentry::capture_message("Something went wrong", sentry::Level::Info);
    println!("uid: {:#?}",uid);

    // Sentry will capture this
    panic!("Everything is on fire!");
}

The output:

uid: f6c7e332-xxxx-xxxx-xxxx-xxxxxxxxxxxx
thread 'main' panicked at app/src/main.rs:541:5:
Everything is on fire!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected Result

The panic should be visible in issues section

Actual Result

The panic is not visible in issue section of sentry project.

Note: It was working until yesterday. I also tried to create a new project but the same issue is popping up.

nakul1010 avatar Oct 01 '24 10:10 nakul1010