Skip to content

Unclear from Rustdoc whether tokio::main is still incompatible with Sentry crate #920

@BatmanAoD

Description

@BatmanAoD

Description

It's mentioned on docs.sentry.io that Sentry is not compatible with tokio::main and other macros that spawn threads or create an async runtime before Sentry is initialized. Is that still the case? It doesn't seem to be mentioned in the docs for the init function or anywhere else in the Rustdoc.

I have an application that uses tokio::main and emits events using capture_error, and it's definitely capable of emitting events, but now that I've seen the warning about tokio::main, I'm concerned that I may be missing events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions