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

No events captured when compiled in `--release` (`production` environment)

Open Niedzwiedzw opened this issue 3 years ago • 3 comments
trafficstars

Environment

What version are you running? Etc.

sentry = { version = "0.27.0", features = ["backtrace", "contexts", "httpdate",  "panic", "reqwest", "reqwest_", "rustls", "sentry-backtrace", "sentry-contexts", "sentry-panic", "sentry-tracing", "tokio", "transport",], default-features=false }
sentry-tracing = "0.27.0"
tracing = "0.1"

Steps to Reproduce

cd /tmp/
git clone https://github.com/Grupa-Pieprzyk/pieprzyk-logging
export TEST_SENTRY_URL=XXX
cargo test
cargo test --release

Expected Result

In my sentry dashboard I'd expect to see errors (events in general actually) that occured in production environment

Actual Result

I only see events for development environment (compiled without --release flag)

Niedzwiedzw avatar Sep 12 '22 19:09 Niedzwiedzw

this is a library I made to have a common configuration for logging across multiple apps I'm maintaining, not sure if it's a bug in this library or it's some configuration mistake I made link to repo: https://github.com/Grupa-Pieprzyk/pieprzyk-logging

Niedzwiedzw avatar Sep 12 '22 19:09 Niedzwiedzw

2022-09-12T21:38:22.513654Z DEBUG sentry: Failed to send envelope: error sending request for url (https://o486718.ingest.sentry.io/api/6782153/envelope/): error trying to connect: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed:s3_clnt.c:1269: (certificate has expired)

I've investigated further, this wasn't an issue with my dev/prod environment, but rather ... yeah /\

I'm running my stuff inside a docker container, no idea why that would cause an issue but yeah, if anyone has any ideas how to fix this please share :D

Niedzwiedzw avatar Sep 12 '22 21:09 Niedzwiedzw

Maybe you need to update your root CA certificates in the docker container? Otherwise not sure, certificates should be up to date on our end, maybe @beezz can double check?

Swatinem avatar Sep 13 '22 08:09 Swatinem