neiderruiz/sentry-notification-laravel

Send Sentry events to Slack

dev-master / 1.0.x-dev 2022-03-23 11:19 UTC

This package is auto-updated.

Last update: 2024-12-06 23:43:16 UTC


README

Requirements

install package

composer require neiderruiz/sentry-notification-laravel

Steps

  • [one] - install package
    composer require neiderruiz/sentry-notification-laravel
  • [two] - register provider package redirect to route config/app.php inner providers insert
    //sentry notification
    Neiderruiz\SentryNotificationLaravel\Providers\SentryNotificationLaravelServiceProvider::class,
  • [three] - publish provider
php artisan vendor:publish --provider="Neiderruiz\SentryNotificationLaravel\Providers\SentryNotificationLaravelServiceProvider"
  • [Four] - create table, run command in terminal
php artisan queue:table  
  • [Six] - run migration
php artisan migrate
  • [Seven] - config enviroment variables
    #sentry
    SENTRY_LARAVEL_DSN=https://ba58cc597a7b4be1b0769052ef156fab@o1162423.ingest.sentry.io/6262441
    SENTRY_TRACES_SAMPLE_RATE=1.0
    SENTRY_SERVER_NAME=localhost
    SENTRY_TOKEN=b2bd1fb414f4445a8f39c69961f26f97efcf780db2f24463a20e893ffe09e44f
    SENTRY_URL_API=https://sentry.io/api/0/projects
    SENTRY_ORGANIZATION=flash-swunschk
    SENTRY_PROJECT=laravel-slack-dev-api

send message slack

  • [one] - config enviroment variables
    #slack
    SLACK_SEND_MESSAGE=true
    SLACK_WEBHOOK_ENDPOINT=https://hooks.slack.com/services/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

run command php artisan queue:table variable de entorno SENTRY_SLACK bool

License

MIT