-
-
Notifications
You must be signed in to change notification settings - Fork 164
Sentry client doesn't send events in v0.22.0 #343
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
Comments
Having cycled through:
For example,
While the |
Are you running this in Docker? If so you'll need to install the |
I will be deploying in docker, but no. This is on my ubuntu workstation, real metal, no containers or virtualization. |
WRT: the log integration. It appears some additional setup is required. Coming from an let mut log_builder = env_logger::Builder::from_default_env();
let logger = sentry::integrations::log::SentryLogger::with_dest(log_builder.build());
log::set_boxed_logger(Box::new(logger)).unwrap();
log::set_max_level(log::LevelFilter::Info); I don't know. It might be nice to note which features just work by default with the list of features on the front page of the docs, also noting which ones require extra steps. |
For what it's worth, I have the same setup for env_logger, and it's pretty clear to me that it doesn't "just work" without any configs based on the readme: https://github.com/getsentry/sentry-rust/tree/master/sentry-log#examples. Perhaps it could have better instructions on top of the example. Circling back to the original issue, the biggest hint IMO is the error I highlighted ( Hopefully someone else can pitch on this. |
The thing of it is, I never saw this readme until some time later since my entry point to the docs was the sentry crate itself and nothing urged me to look at docs for other crates. Since the sentry-log crate is re-exported from the main sentry crate I didn't even know to go looking. |
RE: the SSL configuration. Is there anything particularly distinct in the There's no corporate proxy in play (that I'm aware of) but we do install our own root cert on our machines. This is done with |
Hi @onelson , have you reached any new conclusions here? From your log, it really looks like rather a SSL/system related problem? |
No new conclusions. You asked about the system I ran the I did notice I didn't have to configure Not sure where to look next. |
So, over on the Thanks for your attention! 😅 |
I see there are already several tickets open regarding "sentry doesn't send events" but they cite different versions of the sdk and seem to be related to different causes. This may very well be a duplicate -- I'm unsure.
I've got an actix-web (3.x.x) app and I'm trying to follow along with the examples in the docs to add sentry support.
Environment
In my
Cargo.toml
In my
main.rs
:Steps to Reproduce
Starting the service, and making a request to a handler like:
Expected Result
2 new issues arriving in my sentry project
log::error!("smoke test");
in main, andActual Result
Neither issue made it through to sentry.
I notice there was no failure reported by the sentry crate for the log crate usage, so I assume the log feature just isn't working for some reason.
The request to the endpoint caused sentry to log a cert validation error.
I've additionally started to experiment with different transports to see if one might magically work as expected, but so far I've not had any luck.
For example, I get the same result with:
N.B. The docs talk about an
env_logger
feature, which appears to have been removed in 0.22.0.The text was updated successfully, but these errors were encountered: