Skip to main content

[PHP] Why am I not receiving tracing information from my PHP application?

Issue

I added traces_sample_rate to my SDK configuration, but no tracing information reaches my Sentry project. I see no transactions or spans and no performance data.

Applies To

  • PHP applications

  • All users

Resolution

Setting traces_sample_rate enables tracing, but it does not create spans or transactions on its own. What you need depends on how you run the SDK, ordered by how often each explains missing traces:

  • Confirm traces_sample_rate is greater than 0 in your SDK configuration.

  • If you use a framework integration such as Laravel or Symfony, it provides automatic instrumentation. Enable and verify tracing as described in the Sentry PHP tracing documentation.

  • If you use the base PHP SDK without a framework integration, it does not auto-instrument. Create your own spans and transactions with custom instrumentation.

Did this answer your question?