Sentry adds PHP support for AWS Lambda via Bref
Brief
Sentry has released an official integration for PHP apps running on AWS Lambda through Bref. It captures errors and tracing data that the PHP SDK alone may miss.
What it adds
- Reports request timeouts and responses over AWS Lambda’s 6 MB limit, including the request URL and method.
- Creates transactions for Lambda event invocations, adds cold-start spans, and can trace AWS SDK clients passed to AwsSdkTracer::trace().
- Adds Lambda function and request details to events, with a link to the matching CloudWatch logs.
Requirements and limits
- Install with composer require sentry/sentry-bref; requires PHP 8.2 or later and Bref 3.
- Timeout and oversized-response reporting supports Laravel 12 and Symfony 6.4 or later; other frameworks are not supported for those errors.
- Only AWS SDK clients explicitly passed to the tracer are traced. Cold-start timing begins when PHP starts.
Generated by AI from the original article. Check the source for full details.