Skip to content

Sentry Install instructions For Rust not Working #689

@nakul1010

Description

@nakul1010

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions