Skip to content

Inconsistent Profiling Durations in Sentry When Using Swoole #993

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

Open
mertasan opened this issue May 8, 2025 · 2 comments
Open

Inconsistent Profiling Durations in Sentry When Using Swoole #993

mertasan opened this issue May 8, 2025 · 2 comments

Comments

@mertasan
Copy link

mertasan commented May 8, 2025

How do you use Sentry?

Sentry SaaS (sentry.io)

SDK version

4.10

Laravel version

12.12.0

Steps to reproduce

We’re using PHP 8.4 with Laravel Octane, running on Swoole 6.0.2, and have enabled profiling in Sentry at a 1% sampling rate.

However, the profiling data in Sentry seems off — we see requests showing as taking 25 seconds, but when we open the trace details, there’s nothing inside.

According to Google Load Balancer logs, our request durations are never that high — usually 50ms max.

The endpoints we’re calling (external APIs) take around 3–4 seconds at most.

Since the trace details are empty, we’re unable to make sense of the numbers.

Could there be something wrong with how Sentry is recording or interpreting this data?

For example, one of the entries in the list — AppHomeController — only returns a simple HTML response, yet it’s shown as having the longest duration.

Any help would be appreciated.

Thanks!

Expected result

Actual result

Image
@faytekin
Copy link

faytekin commented May 9, 2025

Same issue

@cleptric
Copy link
Member

cleptric commented May 9, 2025

Is this just a regular Octane setup with Swoole? Or are you using something custom?

To make this extra clear for me, when you say profiling, you actually mean tracing?
So you set a traces_sample_rate/SENTRY_TRACES_SAMPLE_RATE of 0.01?
We also have a dedicated profiling product, which's rate is configured by profiles_sample_rate/SENTRY_PROFILES_SAMPLE_RATE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants