amarc-sudo/sentry-enhanced-tracing
Request, Cache, and DB into Symfony-compatible interfaces).Tymon/JWT-Auth or a custom adapter.Request, Cache, DB, and Event systems to Symfony’s equivalents.ServiceProvider/Event system.traces_sample_rate), but high-traffic APIs may need sampling.1.0 is too high for production; plan for dynamic sampling (e.g., 0.1 in prod).| Laravel Component | Symfony Equivalent | Integration Strategy |
|---|---|---|
Laravel Request |
Symfony Request |
Wrap in Symfony\Component\HttpFoundation\Request |
Laravel Cache |
Symfony CacheInterface |
Use Symfony\Component\Cache\Adapter\AdapterInterface |
Laravel DB (Query Builder) |
Doctrine DBAL | Use Doctrine\DBAL\Connection via doctrine/dbal |
Laravel Events |
Symfony EventDispatcher |
Replace with Symfony\Component\EventDispatcher\EventDispatcher |
Laravel Queue (Horizon) |
Symfony Messenger |
Use symfony/messenger with custom transport |
Laravel Auth (JWT) |
LexikJWTAuthenticationBundle | Replace with tymon/jwt-auth + custom listener |
LaravelRequestToSymfonyRequest).LexikJWTAuthenticationBundle with a Laravel-compatible listener.traces_sample_rate: 0.1 in prod).Request, Cache, DB, Auth.kernel.* events).sentry/sentry-laravel is configured).traces_sample_rate: 0.1).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Sentry DSN misconfiguration | No traces sent | Fallback to try-catch logging. |
| Symfony adapter bugs | Missing spans (e.g., DB queries) | Feature flags to disable problematic adapters. |
High sampling rate (1.0) |
Performance degradation | Enforce traces_sample_rate: 0.1 in prod. |
| JWT adapter failure | Missing user context | Fallback to Laravel’s Auth data. |
| Sentry rate limits | Dropped traces | Implement local buffering + retry logic. |
| Queue worker crashes | Broken trace propagation | Monitor SentryTraceStamp failures. |
EventDispatcher.LaravelRequest → SymfonyRequest).How can I help you explore Laravel packages today?