configure-nightwatch

Configure Laravel Nightwatch sampling, filtering, and redaction policies.

369|79|Updated May 28, 2024
One-click install
npx skills add https://github.com/laravel/nightwatch --skill configure-nightwatch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: configure-nightwatch
Source: https://github.com/laravel/nightwatch/tree/main/resources/boost/skills/configure-nightwatch
Command: npx skills add https://github.com/laravel/nightwatch --skill configure-nightwatch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configures Laravel Nightwatch data collection, sampling rates, filtering rules, and redaction policies to help teams control observability, data volume, and sensitive data exposure in production environments.

Core Features & Use Cases

  • Global and route-based sampling configuration for requests, commands, and other events.
  • Filtering rules to exclude noisy or sensitive data (queries, cache, mail, notifications, outgoing requests, and exceptions).
  • Redaction options to obfuscate headers, payloads, and sensitive identifiers across events.
  • Use case: A production app reduces data volume by 90% while keeping critical error traces intact.

Quick Start

Run the Nightwatch configuration guide to set up sampling, filtering, and redaction policies in your environment.

Frequently Asked Questions about configure-nightwatch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Laravel Nightwatch data collection and sampling rates in production?

Configure Laravel Nightwatch data collection by setting up global and route-based sampling for requests, commands, and other events to control observability and data volume in production environments.

What is the best way to redact sensitive headers and payloads across Laravel events?

Redact sensitive headers, payloads, and identifiers across Laravel events by applying Nightwatch redaction policies to obfuscate confidential user data before collection.

Can I filter noisy database queries and cache events from Nightwatch logs?

Filter noisy or sensitive data like database queries, cache operations, mail, and notifications from Nightwatch logs by applying specific filtering rules to exclude unwanted events.

Does Nightwatch sampling work for background jobs and outgoing mail notifications?

Nightwatch sampling works across all event types including background jobs, outgoing mail, notifications, and exceptions, allowing you to selectively collect and monitor production data.

How do I reduce Nightwatch data volume while keeping critical error traces intact?

Reduce Nightwatch data volume by up to 90% while preserving critical error traces by implementing route-based sampling and filtering rules to exclude non-essential application events.

When should I not use global sampling for Laravel observability?

Avoid global sampling when you need granular control over specific event types; instead, use route-based and event-specific filtering to preserve critical traces while excluding noisy data.