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
The Agent is a sidecar to the PHP application that is meant to run on the same machine in order to accept outgoing HTTP requests to Sentry and send them asynchronously without blocking the main PHP script.
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 [options]--listen=ADDRESS, defaults to127.0.0.1:5148--upstream-timeout=SECONDS, defaults to2.0seconds--upstream-concurrency=REQUESTS, defaults to10--queue-limit=ENVELOPES, the amount of envelopes to keep in memory, defaults to1000--drain-timeout=SECONDS, defaults to10.0seconds--control-server=ADDRESS, enables the HTTP control server on the specified address--http-proxy=URL, forwards upstream envelope requests through an HTTP CONNECT proxy--http-proxy-authentication=AUTH, credentials for proxy basic authentication inusername:passwordformat
Licensed under the MIT license, see LICENSE