Download the PHP package friendsofhyperf/sentry without Composer
On this page you can find all versions of the php package friendsofhyperf/sentry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download friendsofhyperf/sentry
More information about friendsofhyperf/sentry
Files in friendsofhyperf/sentry
Package sentry
Short Description The sentry component for Hyperf.
License MIT
Informations about the package sentry
Sentry
中文说明
Sentry component for Hyperf. It integrates the Sentry PHP SDK with Hyperf application lifecycle events, logs, tracing, metrics, crons, and coroutine-friendly transport.
Installation
Optional integrations require the related Hyperf or client packages, for example
hyperf/amqp, hyperf/crontab, hyperf/database, hyperf/rpc-multiplex,
elasticsearch/elasticsearch, phpmyadmin/sql-parser, or hyperf/engine.
Publish Configuration
This publishes config/autoload/sentry.php. The core settings are:
The configuration file also accepts Sentry SDK options such as server_name,
traces_sampler, before_send_log, before_send_metric,
before_send_check_in, before_send_transaction, ignore_exceptions, and
ignore_transactions.
Logs
The component registers a logger.channels.sentry channel with
FriendsOfHyperf\Sentry\Monolog\LogsHandler when no Sentry logger channel is
already configured. Configure the minimum level with:
To send diagnostic logs produced by the Sentry SDK itself, configure a PSR logger:
Commands
sentry:about prints SDK, DSN, environment, release, sample rate, and PII status.
sentry:test sends a test exception and can also send a test transaction.
Annotations
Available graceful strategies are swallow, rethrow, fallback, and
translate.
Tracing
The component enables tracing by default and can continue trace context across HTTP, RPC, queue, Kafka, AMQP, crontab, command, and coroutine boundaries.
Use ignore_commands and ignore_transactions in config/autoload/sentry.php
to exclude noisy commands or routes. Use tracing_tags to control optional span
data such as SQL bindings, results, or response bodies.
Manual instrumentation is available through helper functions:
Metrics
Default metrics cover request timing, coroutine server stats, command timing,
database and Redis pools, and async queues when the related packages are present.
#[Counter] and #[Histogram] add method-level custom metrics.
Crons
Hyperf crontab events can be reported as Sentry check-ins:
Per-crontab options can override checkin_margin, max_runtime,
failure_issue_threshold, recovery_threshold, and update_monitor_config.
Set monitor to false on a crontab to skip check-ins for that task.
Transport
The default binding uses FriendsOfHyperf\Sentry\Transport\CoHttpTransport.
Tune its queue and concurrency with:
Sentry Development Documentation
- OpenTelemetry Semantic Conventions semantic-conventions
- Sentry Span Operations Naming Standards span-operations
Contact
- Gmail
License
MIT
All versions of sentry with dependencies
hyperf/coordinator Version ~3.2.1
hyperf/context Version ~3.2.0
hyperf/coroutine Version ~3.2.0
hyperf/di Version ~3.2.0
hyperf/event Version ~3.2.0
hyperf/exception-handler Version ~3.2.0
hyperf/framework Version ~3.2.0
hyperf/http-server Version ~3.2.0
hyperf/support Version ~3.2.0
hyperf/tappable Version ~3.2.0
sentry/sentry Version ^4.28.0
symfony/polyfill-php85 Version ^1.33