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

Improve the ability to debug sentry integration #620

Open
psibi opened this issue Oct 20, 2023 · 1 comment
Open

Improve the ability to debug sentry integration #620

psibi opened this issue Oct 20, 2023 · 1 comment

Comments

@psibi
Copy link

psibi commented Oct 20, 2023

I have been trying to integrate sentry tracing with to one of the applications at work and I'm having some issues with it.

When trying to debug it further, I provide these options:

            sentry::ClientOptions {
                release: sentry::release_name!(),
                session_mode: sentry::SessionMode::Application,
                debug: true,
                // Fixme: Change to 1% sampling rate at production
                traces_sample_rate: 1.0,
                ..Default::default()
            },

And when the debug is true, it provides output like this:

[sentry] Get response: `{"id":"ae0962de93bb4e4bbafa958fb4737a44"}`

Unfortunately it's not very helpful for my case. Is there a way for me to understand what that id is and how to correlate with it ? Probably there is a documentation related to this, but I'm not able to find it in the crate docs or just general searching.

@Swatinem
Copy link
Member

I agree that the response itself might not be as useful. At this point the transport is dealing with Envelopes and it might be possible to at least debug-print the types of envelope items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants