iazaran/trace-replay
TraceReplay is an execution tracer for Laravel: instrument steps, view a waterfall timeline, auto-trace jobs/commands, track DB/cache/mail, and deterministically replay HTTP with JSON diffs. Includes PII masking, sampling, multi-tenant scoping, and AI debug prompts.
traces, steps, replays) must be backward-compatible with existing Laravel migrations.app/Http/Kernel.php for HTTP requests.Illuminate\Bus\Dispatcher) for queue workers.trace-replay:install artisan command.| Phase | Task | Dependencies | Risk Mitigation |
|---|---|---|---|
| 1 | Install package + DB schema | Laravel 10+ | Test in staging first |
| 2 | Instrument middleware | Kernel.php | Start with non-critical routes |
| 3 | Add job/workflow tags | Dispatcher | Mock async steps in tests |
| 4 | Enable replay UI | Frontend access | Secure with Laravel gates |
| 5 | Configure AI provider | API keys | Set rate limits |
| 6 | Monitor storage/performance | DB metrics | Implement TTL policies |
trace-replay:prune, trace-replay:replay) for management.trace_steps table growth).| Scenario | Impact | Mitigation |
|---|---|---|
| DB outage | Traces lost; no replay | Replicate trace DB; enable backups |
| AI provider downtime | Debugging blocked | Cache prompts; fallback to manual analysis |
| Storage bloat | Slow queries, high costs | Set TTL (e.g., 30 days); archive old traces |
| Replay inaccuracies | False positives in debugging | Validate with logs; use for hypothesis testing |
| High-cardinality tags | DB performance degradation | Limit step tags to essential metadata |
How can I help you explore Laravel packages today?