Skip to content

High CPU usage because of a uuid4 call #3908

Open
@debugger22

Description

@debugger22

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions