Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust Tracing integration results in panic in application #10434

Open
hanishgogada opened this issue Jun 18, 2024 · 1 comment
Open

Rust Tracing integration results in panic in application #10434

hanishgogada opened this issue Jun 18, 2024 · 1 comment
Labels
Bug Type: Content Issues about the contents of our docs Waiting for: Support

Comments

@hanishgogada
Copy link

Steps to Reproduce

  1. Enabled traces_sample_rate in ClientOptions
  2. Added tracing subscriber using
    tracing_subscriber::registry()
    .with(tracing_subscriber::fmt::layer())
    .with(sentry_tracing::layer())
    .init();
    
  3. Enabled tracing on rust methods through #[tracing::instrument]

Expected Result

Expected to receive the traces in the console

Actual Result

thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-subscriber-0.3.17/src/util.rs:91:14
failed to set global default subscriber: SetLoggerError(())

Additional Info

Http tracing through sentry-actix is working fine. Wanted to enable tracing at the method level.
I am sure this is bug in the docs, missing a step

@hanishgogada hanishgogada added Bug Type: Platform Issues about the platform & functionality of our docs labels Jun 18, 2024
@getsantry
Copy link
Contributor

getsantry bot commented Jun 18, 2024

Assigning to @getsentry/support for routing ⏲️

@stephanie-anderson stephanie-anderson added Type: Content Issues about the contents of our docs and removed Type: Platform Issues about the platform & functionality of our docs labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Type: Content Issues about the contents of our docs Waiting for: Support
Projects
Status: Waiting for: Support
Development

No branches or pull requests

2 participants