Configuration

Publish the config file when you need to customise defaults:

php artisan vendor:publish --tag=cinder-config

Most teams only set environment variables.

Environment variables

Variable Purpose Default
CINDER_KEY Project API token (sent as Authorization: Bearer) —
CINDER_URL Cinder base URL (no /api suffix) https://cinderwatch.dev
CINDER_ERRORS_ENABLED Send exceptions true
CINDER_LOGS_ENABLED Allow log shipping true
CINDER_TRACING_ENABLED Collect performance traces true
CINDER_TRACE_SAMPLE_RATE Trace sample rate (0–1) 0.1
CINDER_TRACE_IGNORE_JOBS Comma-separated job class names to skip tracing —
CINDER_SERVICE_NAME Service name on reports APP_NAME
CINDER_SERVICE_VERSION Optional deploy / git version —
CINDER_STAGE Stage label APP_ENV
CINDER_VCS_REVISION Git commit hash of the deploy —
CINDER_VCS_BRANCH Git branch of the deploy —
CINDER_VCS_MESSAGE Commit message of the deploy —
CINDER_SCHEDULE_GRACE_MINUTES Minutes a scheduled task may run late before it is flagged 5
CINDER_HEALTH_ENDPOINT_ENABLED Register the health HTTP endpoint false
CINDER_HEALTH_CHECK_SECRET Secret Cinder sends as Authorization: Bearer when polling the health endpoint —
CINDER_HEALTH_ENDPOINT_URL Health endpoint path /cinder/v1/health
CINDER_HEALTH_NODE Server role for health checks (web, worker, or default) default
CINDER_HEALTH_NODE_LABEL Display label for this node in aggregated responses —
CINDER_HEALTH_AGGREGATE_NODES Comma-separated peer nodes to merge from Redis (web server) —
CINDER_HEALTH_AGGREGATE_MAX_AGE_SECONDS Max age before a peer report is treated as failed 180
CINDER_HEALTH_UPDATES_SCHEDULE_HEARTBEAT Whether cinder:health updates the schedule heartbeat key true
CINDER_SCHEDULE_MONITOR_ENABLED Listen for scheduled task events true
CINDER_SCHEDULE_MONITOR_API_URL Override schedule API base {CINDER_URL}/api/v1/

Filtering reports

Skip noise before it leaves your app:

use Cinderwatch\Laravel\Facades\Cinder;

Cinder::reportOnlyWhen(function (Throwable $throwable): bool {
    return ! $throwable instanceof SomeIgnorableException;
});

Return false to drop the report.

Manual reporting

use Cinderwatch\Laravel\Facades\Cinder;

Cinder::report($exception, context: ['order_id' => $order->id]);

Config file keys

The published config/cinder.php mirrors the env vars above and also controls:

  • Trace middleware groups (web, api by default)
  • Job and Artisan command classes to ignore when tracing
  • Health result cache store / key
  • Whether skipped health checks count as failures
  • Schedule-monitor grace time
  • Fresh vs cached health endpoint responses

See Health endpoint and Schedule monitor for those options.