andersundsehr / sentry-async
Asynchronous Sentry for Symfony - Fire and forget
Installs: 114
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- ext-fileinfo: *
- http-interop/http-factory-discovery: ^1.6
- php-http/discovery: *
- psr/http-client: ^1.0
- psr/http-factory-implementation: *
- sentry/sentry: ^4.10.0
- sentry/sentry-symfony: ^5.1
- symfony/http-client: ^7.2
Requires (Dev)
- pluswerk/grumphp-config: ^7.1.0
- symfony/test-pack: ^1.1
This package is auto-updated.
Last update: 2025-01-14 15:44:27 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
The andersundsehr/sentry-async depends on SENTRY_DSN environment variable set.
sentry: options: transport: AUS\SentryAsync\Transport\QueueTransport 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 implementing \AUS\SentryAsync\Queue\QueueInterface
App\Queue\ExampleQueue: public: true AUS\SentryAsync\Transport\QueueTransport: $queue: '@App\Queue\ExampleQueue'