andersundsehr / sentry-async
Asynchronous Sentry for Symfony - Fire and forget
Installs: 99
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- ext-fileinfo: *
- sentry/sentry-symfony: ^4.12.0
Requires (Dev)
- pluswerk/grumphp-config: ^6.1
This package is auto-updated.
Last update: 2024-10-24 10:27:55 UTC
README
To enable the asynchronous transport configure sentry to use our transport factory.
The extension is shipped with a default file_queue, which may be configured in config/packages/sentry.yaml
sentry: transport_factory: AUS\SentryAsync\Transport\TransportFactory sentry_async: file_queue: compress: true limit: 200 directory: '%kernel.cache_dir%/sentry_async/'
Indeed, you can use another queue functionality and do things on your own config/services.yaml
App\Queue\ExampleQueue: public: true AUS\SentryAsync\Transport\TransportFactory: $queue: '@App\Queue\ExampleQueue'
Example of an other transport class in src/Queue/ExampleQueue
<?php declare(strict_types=1); namespace App\Queue; use AUS\SentryAsync\Queue\Entry; use AUS\SentryAsync\Queue\QueueInterface; class ExampleQueue implements QueueInterface { public function pop(): ?Entry { } public function push(Entry $entry): void { } }