Noctora
Moving from Laravel Nightwatch
Point an app that reports to Laravel Nightwatch at Noctora by changing two environment variables.
Noctora works with the same laravel/nightwatch package you already run. Moving an app means changing two lines in its .env and restarting the agent. Your code doesn’t change.
Switch an Environment
Section titled “Switch an Environment”-
Create an Application in Noctora with the same Environments, and a token for each. Getting started walks through it.
-
In each Environment’s
.env, replace the token with the one from Noctora and add Noctora’s URL:NIGHTWATCH_TOKEN=your-noctora-environment-tokenNIGHTWATCH_BASE_URL=https://noctora.spectivis.com/app -
If you cache config, set
NIGHTWATCH_BASE_URLas a real environment variable for the agent and your deploy script. See Running the agent. -
Restart the agent so it signs in with the new token. Under Supervisor or systemd:
Terminal window sudo supervisorctl restart nightwatch-agent# orsudo systemctl restart nightwatch-agent -
Run
php artisan aboutand open the Environment’s Requests page in Noctora.
Each Environment reports to one place, with one token and one base URL. Switch staging first if you want to try Noctora before moving production.
What stays the same
Section titled “What stays the same”- The package. Noctora is tested against the newest
laravel/nightwatch1.x release every week. - The package’s settings for sampling, filtering and redaction.
- Deployments.
php artisan nightwatch:deploymarks a Deployment in Noctora too.
What’s different
Section titled “What’s different”- History. Noctora starts from the first delivery it receives and can’t import data from Laravel Nightwatch.
- Accounts. You sign in with a Spectivis account, and Organizations, members and roles are managed in Spectivis Accounts.
- Alerts. Alerts are emails, one digest per person, at most one every 30 minutes.
- Issues. Besides exceptions, Noctora opens an Issue when a request, job, command or scheduled task runs slower than its Threshold, and when a scheduled task misses a run.
- Retention. Individual Records are kept for 30 days, and charts go back 90 days.