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
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.
Install the agent alongside the PHP SDK using Composer.
composer require sentry/sentry sentry/sentry-agentUse the SDK-provided agent client as the custom HTTP client for the PHP (also Symfony & Laravel) SDKs.
use Sentry\Agent\Transport\AgentClientBuilder;
Sentry\init([
'dsn' => '___PUBLIC_DSN___',
'http_client' => AgentClientBuilder::create()->getClient(),
]);vendor/bin/sentry-agentvendor/bin/sentry-agent [listen_address] [listen_port] [upstream_timeout] [upstream_concurrency] [queue_limit]listen_address, defaults to127.0.0.1listen_port, defaults to5148upstream_timeout, defaults to2.0secondsupstream_concurrency, defaults to10queue_limit, the amount of envelopes to keep in memory, defaults to1000
Licensed under the MIT license, see LICENSE