Keeping it Bref: Sentry now supports PHP on AWS Lambda
The new sentry/sentry-bref integration reports PHP errors on AWS Lambda that the Sentry SDK cannot see from inside PHP-FPM, such as timeouts (Bref kills PHP-FPM 1 second before the Lambda deadline) and responses over the 6 MB limit. It hooks into the long-lived Bref runtime around each invocation, boots the Laravel or Symfony app there to reuse its Sentry client, and handles non-HTTP events. For SQS, EventBridge and S3 events it creates one transaction per invocation with an isolated scope per invocation, records cold-start spans (measured in the runtime and passed via /tmp), traces opted-in AWS SDK clients, and links each event to its CloudWatch logs. Timeout reporting only works with Laravel and Symfony, and the cold-start span excludes the time Lambda spends creating the instance before PHP starts.
Related posts
- Building Sentry's Laravel AI Integration
Sentry mediumAdeptSentry's Laravel AI integration, shipped in sentry-laravel 4.27, adds Agent Tracing to Laravel AI agents with no code changes. Because PHP can't easily wrap or patch functions, it hooks Laravel AI's agent and tool lifecycle events, then derives per-LLM Chat spans from Laravel's HTTP client events. Outgoing request URLs are matched against each active invocation's provider URL prefix, and the most recently started invocation wins when several match. Built during a hackweek with Claude, the work also surfaced AI-generated overly defensive PHP that ignored Laravel's typed event shapes.
- Simplify Serverless in AWS: How to Use Neon and Ephemeral Environments
Neon mediumAdept
Neon's serverless Postgres pairs well with ephemeral environments on AWS Lambda because each environment can get its own instant copy-on-write database branch without paying for extra RDS uptime. Compared with Aurora Serverless v2, Neon claims ~500ms cold starts versus 15s, built-in PgBouncer supporting 10,000 connections, and an HTTP/WebSocket data API. A TODO API built with the Serverless Framework shows how the serverless driver's sql template tag guards against SQL injection, but only when called directly on a string literal, and how sql.query with $n placeholders handles dynamic updates. Scripts and GitHub Actions create a branch per feature or CI run, run unit and end-to-end tests against it, then tear down both the stack and the branch.
- Modular regression testing framework built on AWS for large-scale systems
AWS Architecture Blog mediumAdeptA traffic-replay regression testing framework built on AWS captures production requests and responses, replays a sample against new code in pre-production, and gates deployments on a CloudWatch alarm over the fraction of matching outputs (typically 99.9%). Step Functions toggles a Lambda event source mapping on a DynamoDB stream, replayed requests carry simulation IDs so stateful services can skip side effects and seed randomness deterministically, and responses are reduced and normalized before comparison via CloudWatch Logs Insights. Over six months it caught five customer-impacting regressions with zero false positives, using about 5% traffic replay with 200-record batches and reserved concurrency to cap load.
- Sentry's Flutter SDK 10.0: Streaming Traces and More Accurate Crash-Free Rates
Sentry mediumAdeptSentry's Flutter SDK 10.0 switches tracing to a streaming model that sends finished spans in batches instead of waiting for the whole transaction, with `Sentry.startSpan` for custom instrumentation and an opt-out via `SentryTraceLifecycle.static`. Unhandled Flutter errors that don't kill the app no longer mark sessions as crashed (they end as `unhandled`), making crash-free rates more accurate. App startup becomes its own `app.start` root trace on Android and iOS, with an optional extension API. The release also removes the enable flags for logs and metrics, captures Dio failures that have no HTTP response, masks Flutter `SensitiveContent` in Replay, drops profiling and raises minimums to Dart 3.12 and Flutter 3.44, with sampling and filter rules needing review during upgrade.
- Squeezing every millisecond: How we rebuilt the Datadog Lambda Extension in Rust
Datadog Engineering mediumAdeptDatadog rewrote its AWS Lambda Extension from a Go build of the full Datadog Agent into a purpose-built Rust sidecar (Project Bottlecap), cutting cold start overhead from about 450 ms to 70 ms, memory from 128 MiB to 77 MiB, and binary size from 55 MB to 7 MB. The team benchmarked every PR against cold start overhead and hand-wrote AWS API calls and signatures instead of using SDKs. To cover both API-style and batch workloads, the extension supports configurable flush strategies: flushing at the end of an invocation, racing it, flushing periodically, or combining these. Rollout used a roughly 4 ms startup check that fails over to the bundled legacy extension when it detects unsupported configurations, with telemetry on fallbacks guiding which features to support next.