/actix-tracing-sentry-repro

Seeing deadlocks when this app tries to forward events back to sentry

Primary LanguageRust

An actix-web app using a combination of

Roughly patching together a subscriber setup from a combination of the docs/readmes for tracing, tracing-actix-web, and sentry (specifically sentry-tracing) it appears there's some sort of deadlock when the sentry client tries to send events home.

Running without a sentry dsn seems to work, but curling any of the endpoints when it is will hang your terminal.

Per the guidance from tracing-actix-web, the stdout will be formatted in json and can be pretty-printed when piped through bunyan. cargo install bunyan is sufficient for log tailing.

To run:

# No sentry dsn configured
$ cargo run
# or with the sentry dsn:
$ SENTRY_DSN=******** cargo run

Then, take your pick of:

$ curl http://localhost:7878/panic
$ curl http://localhost:7878/err
$ curl http://localhost:7878/event