Skip to content

Laravel note on performance overhead potentially misleadingΒ #11337

@kosty-sentry-dw-eval

Description

@kosty-sentry-dw-eval

SDK

PHP SDK

Description

https://docs.sentry.io/platforms/php/guides/laravel/#local-development-and-testing
Mentions negative effect of Sentry SDK on performance. I believe it may be a bit misleading

  1. This may lead customers to generalize that to Sentry overall, however this is something specific to only PHP platform that doesn't allow sending events in the background. Overhead on all other platforms is negligible as background threads (or equivalent) are used.
  2. AFAIK even for PHP (in production environment) it can be effectively mitigated by running a local relay in the same datacenter that reduces latency. We only mention that in the deep fine print of [Performance Monitoring] Performance Overhead and only in the context of AWS Lambda (I believe it should apply universally). So customer may conclude overhead locally => overhead in production and not be aware of mitigation. And this Laravel passage in question doesn't link to that doc.

Context: this section seems to be picked up a lot by RAG as it matches certain use cases well and other platforms don't have an equivalent doc. It's on RAG that it wasn't able to tell it's SDK-specific, but maybe we can meet it halfway? πŸ™‚

Suggested Solution

add something along the lines of "because PHP unlike other platforms doesn't have background threads"? (@cleptric correct me if this is wrong please)

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions