composer require + API key for basic setup. Laravel auto-discovery eliminates boilerplate.config/allstak.php or env vars) simplify enabling/disabling features (e.g., disable DB telemetry for performance-sensitive routes).AllStak::init()) and may need custom middleware for HTTP/DB telemetry.ALLSTAK_CAPTURE_EXCEPTIONS=true only.config/allstak.php to toggle features:
'collectors' => [
'exceptions' => env('ALLSTAK_CAPTURE_EXCEPTIONS', true),
'http' => env('ALLSTAK_CAPTURE_HTTP', false),
'pdo' => env('ALLSTAK_CAPTURE_PDO', false),
],
AllStakServiceProvider.// app/Exceptions/Handler.php
public function report(Throwable $exception) {
AllStak\Facade::captureError($exception);
parent::report($exception);
}
$client = new GuzzleHttp\Client([
'middleware' => [
new AllStak\Guzzle\Middleware(),
],
]);
composer.json constraints).DB_LOG_QUERIES=true
ALLSTAK_API_KEY to .env.100ms latency spikes).config/allstak.php and .env. Easy to update collectors or API keys.AllStak\Facade) for manual captures (e.g., captureLog(), captureError()), useful for custom telemetry.// Example: Queue events during outages
AllStak::setQueue(new \Spatie\QueueableEntity\Queue());
ALLSTAK_SAMPLE_RATE=0.1).service name in config.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| AllStak API Unreachable | Lost telemetry (no buffering) | Implement local queue + retry logic. |
| API Key Leak | Data exposure | Rotate keys; use env vars; audit logs. |
| High Error Volume | Dashboard overload | Enable sampling; filter non-critical errors. |
| SDK Bug | Missing data or crashes |
How can I help you explore Laravel packages today?