Skip to content

Significant performance impactΒ #4660

@slafs

Description

@slafs

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.34.1

Steps to Reproduce

Given that #2116 is already closed,
I've decided to open a new issue on the same topic.

We're seeing a significant performance impact of using sentry's SDK in our FastAPI and Django projects, both running behind Uvicorn.

Not sure if this is expected, but the performance hit when only calling sentry_sdk.init() is a bit terrifying TBH.

Please see https://github.com/slafs/sentry_perf for details.

Expected Result

I'd expect far less impact on the performance, given that the SDK doesn't do anything yet (no error capture, no transaction capture and no event sending).

Actual Result

In some cases the performance is around 2x or even 4x worse (e.g. from 20k req/s to 5k req/s)

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions