Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU usage because of a uuid4 call #3908

Open
debugger22 opened this issue Jan 9, 2025 · 1 comment
Open

High CPU usage because of a uuid4 call #3908

debugger22 opened this issue Jan 9, 2025 · 1 comment
Labels
Component: SDK Core Dealing with the core of the SDK

Comments

@debugger22
Copy link

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.19.2

Steps to Reproduce

https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/tracing.py#L290

My APM is reporting high cou usage from the above line.

My sentry init -

sentry_sdk.init(
    dsn=config.SENTRY_URL,
    integrations=[DjangoIntegration(), CeleryIntegration()],
    send_default_pii=True,
    enable_tracing=False,
    environment=ENV,
    max_request_body_size="always",
    server_name=os.environ.get("CONTAINER_NAME", socket.getfqdn()),
)

Expected Result

The overhead should be very little.

Actual Result

Image

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 9, 2025
@antonpirker antonpirker added the Component: SDK Core Dealing with the core of the SDK label Jan 13, 2025
@antonpirker
Copy link
Member

Hey @debugger22 thanks for writing in.

There was a PR that addressed a similar problem but it was not merged because we thought it was fixed with another PR.

So maybe it is time to reopen this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: SDK Core Dealing with the core of the SDK
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

2 participants