sentry / sentry-agent
Sentry Agent for PHP (https://sentry.io)
Fund package maintenance!
sentry.io/pricing
sentry.io
Requires
- php: ^7.2|^8
- clue/mq-react: ^1.6
- react/http: ^1.11
- react/socket: ^1.16
- sentry/sentry: ^4.10
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.70
- phpstan/phpstan: ^2.1
This package is not auto-updated.
Last update: 2025-03-28 20:31:40 UTC
README
Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions
Official Sentry Agent for PHP
Caution
The current state of this project is somewhere along the lines of pre-alpha.
We strongly recommend you to not run this in production.
During the 0.x
release cycle, we might introduce breaking changes at any time.
Getting started
Install
Install the agent using Composer.
composer require sentry/sentry-php-agent
Configuration
The agent is configured as a custom HTTP client for the PHP (also Symfony & Laravel) SDKs.
Sentry\init([ 'dsn' => '___PUBLIC_DSN___', 'http_client' => new Sentry\Agent\Transport\AgentClient(), ]);
Usage
vendor/bin/sentry-agent
Configuration
vendor/bin/sentry-agent [listen_address] [listen_port] [upstream_timeout] [upstream_concurrency] [queue_limit]
listen_address
, defaults to127.0.0.1
listen_port
, defaults to5148
upstream_timeout
, defaults to2.0
secondsupstream_concurrency
, defaults to10
queue_limit
, the amount of envelopes to keep in memory, defaults to1000
License
Licensed under the MIT license, see LICENSE