Skip to content

Commit

Permalink
Update Sentry configuration (#470)
Browse files Browse the repository at this point in the history
Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia committed Nov 27, 2023
1 parent 97832a5 commit 5a1b960
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/sentry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The sentry component for Hyperf.
composer require friendsofhyperf/sentry
```

## Publish Config File
## Publish

```shell
php bin/hyperf.php vendor:publish friendsofhyperf/sentry
Expand Down Expand Up @@ -82,19 +82,21 @@ class Foo

## Tracing

```php
<?php

# config/autoload/listeners.php
return [
FriendsOfHyperf\Sentry\Tracing\Listener\TracingAmqpListener::class,
FriendsOfHyperf\Sentry\Tracing\Listener\TracingAsyncQueueListener::class,
FriendsOfHyperf\Sentry\Tracing\Listener\TracingCommandListener::class,
FriendsOfHyperf\Sentry\Tracing\Listener\TracingCrontabListener::class,
FriendsOfHyperf\Sentry\Tracing\Listener\TracingDbQueryListener::class,
FriendsOfHyperf\Sentry\Tracing\Listener\TracingKafkaListener::class,
FriendsOfHyperf\Sentry\Tracing\Listener\TracingRequestListener::class,
];
```env
SENTRY_TRACING_ENABLE_AMQP=true
SENTRY_TRACING_ENABLE_ASYNC_QUEUE=true
SENTRY_TRACING_ENABLE_COMMAND=true
SENTRY_TRACING_ENABLE_CRONTAB=true
SENTRY_TRACING_ENABLE_KAFKA=true
SENTRY_TRACING_ENABLE_MISSING_ROUTES=true
SENTRY_TRACING_ENABLE_REQUEST=true
SENTRY_TRACING_SPANS_COROUTINE=true
SENTRY_TRACING_SPANS_DB=true
SENTRY_TRACING_SPANS_ELASTICSEARCH=true
SENTRY_TRACING_SPANS_GUZZLE=true
SENTRY_TRACING_SPANS_RPC=true
SENTRY_TRACING_SPANS_REDIS=true
SENTRY_TRACING_SPANS_SQL_QUERIES=true
```

## Donate
Expand Down

0 comments on commit 5a1b960

Please sign in to comment.