Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Health Laravel Package

spatie/laravel-health

Monitor your Laravel app’s health by registering checks (disk space, etc.) with warning/fail thresholds. Get notified via mail or Slack when checks degrade, and extend with custom checks for proactive alerting.

View on GitHub
Deep Wiki
Context7

title: Flare error count weight: 12

This check will monitor the amount of errors and exceptions your application throws. For this check you'll need to have an account on Flare.

By default, this check will send:

  • a warning when there were more than 500 errors reported to Flare in the past 60 minutes
  • a failure when there were more than 1000 errors reported to Flare in the past 60 minutes

Usage

To start using this check, you should have a Flare API Token and Flare project id. Check the Flare docs on how to get these values.

Here's how you can register the check.

use Spatie\Health\Facades\Health;
use Spatie\Health\Checks\Checks\FlareErrorOccurrenceCountCheck;

Health::checks([
    FlareErrorOccurrenceCountCheck::new()
        ->apiToken($flareApiToken)
        ->projectId($flareProjectId),
]);

Customizing the amount of errors

To customize the amount of errors that triggers a warning/failure, you can call warnWhenMoreErrorsReceivedThan, and failWhenMoreErrorsReceivedThan.

FlareErrorOccurrenceCountCheck::new()
    ->warnWhenMoreErrorsReceivedThan(20)
    ->failWhenMoreErrorsReceivedThan(50),
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport