Skip to content

Make it clearer when to initialize in coroutine or the global scope #15392

@alexander-alderman-webb

Description

@alexander-alderman-webb

SDK

Python SDK

Description

We have had questions come in about using asyncio with FastAPI and AWS lambda. The former suggests initializing in the main async coroutine, while the latter two indicate that Sentry should be initialized at the top level.

Suggested Solution

Investigate when to initialize Sentry when using asyncio together with FastAPI and AWS lambda.

If initializing in coroutines is better in some cases when using FastAPI and AWS lambda, then case split in the respective docs pages.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions