
Configure Laravel Nightwatch
from agent-skills552
Guides configuring Laravel Nightwatch for balanced observability: sampling, filtering, and redaction to reduce noise and protect PII.
What it does
Provides step-by-step guidance to configure Laravel Nightwatch so teams can capture meaningful traces while controlling volume and protecting sensitive data. Covers global and route-based sampling, event filtering, and programmatic redaction for requests, queries, cache, mail, jobs, and outgoing HTTP calls. Practical code examples and recommended environment variables are included.
When to use it
Use this skill when setting up observability for Laravel apps in staging or production: to set sensible sampling rates, exclude noisy events, redact PII from traces, and optimize what Nightwatch retains. Helpful during onboarding, incident triage, or when reducing telemetry costs.
What's included
- Scripts: none embedded (has_scripts=false)
- References: documentation links and a reference.md lookup table (has_references=false but includes explicit doc links)
- Instructions: concrete PHP and env-var examples for sampling, route middleware, filtering callbacks, and redaction hooks.
Compatible agents
Best used by agents working with code/documentation contexts (Copilot/Code assistants, Claude Code, GitHub Copilot). The material is PHP-focused and assumes access to repo source and Laravel runtime.
Tags
Information
- Repository
- agent-skills
- Stars





