Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/en/components/sentry.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ The default binding uses `FriendsOfHyperf\Sentry\Transport\CoHttpTransport`.
Tune its queue and concurrency with:

```env
SENTRY_TRANSPORT_CHANNEL_SIZE=65535
SENTRY_TRANSPORT_CONCURRENT_LIMIT=1000
SENTRY_TRANSPORT_CHANNEL_SIZE=512
SENTRY_TRANSPORT_CONCURRENT_LIMIT=100
SENTRY_HTTP_TIMEOUT=2.0
```

Expand Down
4 changes: 2 additions & 2 deletions docs/zh-cn/components/sentry.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ SENTRY_CRONS_TIMEZONE=UTC
变量调整队列和并发:

```env
SENTRY_TRANSPORT_CHANNEL_SIZE=65535
SENTRY_TRANSPORT_CONCURRENT_LIMIT=1000
SENTRY_TRANSPORT_CHANNEL_SIZE=512
SENTRY_TRANSPORT_CONCURRENT_LIMIT=100
SENTRY_HTTP_TIMEOUT=2.0
```

Expand Down
4 changes: 2 additions & 2 deletions docs/zh-hk/components/sentry.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ SENTRY_CRONS_TIMEZONE=UTC
變量調整隊列和併發:

```env
SENTRY_TRANSPORT_CHANNEL_SIZE=65535
SENTRY_TRANSPORT_CONCURRENT_LIMIT=1000
SENTRY_TRANSPORT_CHANNEL_SIZE=512
SENTRY_TRANSPORT_CONCURRENT_LIMIT=100
SENTRY_HTTP_TIMEOUT=2.0
```

Expand Down
4 changes: 2 additions & 2 deletions docs/zh-tw/components/sentry.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ SENTRY_CRONS_TIMEZONE=UTC
變數調整佇列和併發:

```env
SENTRY_TRANSPORT_CHANNEL_SIZE=65535
SENTRY_TRANSPORT_CONCURRENT_LIMIT=1000
SENTRY_TRANSPORT_CHANNEL_SIZE=512
SENTRY_TRANSPORT_CONCURRENT_LIMIT=100
SENTRY_HTTP_TIMEOUT=2.0
```

Expand Down
4 changes: 2 additions & 2 deletions src/sentry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ The default binding uses `FriendsOfHyperf\Sentry\Transport\CoHttpTransport`.
Tune its queue and concurrency with:

```env
SENTRY_TRANSPORT_CHANNEL_SIZE=65535
SENTRY_TRANSPORT_CONCURRENT_LIMIT=1000
SENTRY_TRANSPORT_CHANNEL_SIZE=512
SENTRY_TRANSPORT_CONCURRENT_LIMIT=100
SENTRY_HTTP_TIMEOUT=2.0
```

Expand Down
4 changes: 2 additions & 2 deletions src/sentry/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ SENTRY_CRONS_TIMEZONE=UTC
变量调整队列和并发:

```env
SENTRY_TRANSPORT_CHANNEL_SIZE=65535
SENTRY_TRANSPORT_CONCURRENT_LIMIT=1000
SENTRY_TRANSPORT_CHANNEL_SIZE=512
SENTRY_TRANSPORT_CONCURRENT_LIMIT=100
SENTRY_HTTP_TIMEOUT=2.0
```

Expand Down
12 changes: 6 additions & 6 deletions src/sentry/publish/sentry.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'logs_channel_level' => env('SENTRY_LOGS_CHANNEL_LEVEL', Sentry\Logs\LogLevel::debug()),

// @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#enable_metrics
'enable_metrics' => env('SENTRY_ENABLE_METRICS', true),
'enable_metrics' => env('SENTRY_ENABLE_METRICS', false),

// @see: https://docs.sentry.io/platforms/php/configuration/options/#before_send_metric
// 'before_send_metric' => function (Sentry\Metrics\Types\Metric $metric): ?Sentry\Metrics\Types\Metric {
Expand All @@ -66,8 +66,8 @@
// return $event;
// },

'enable_default_metrics' => env('SENTRY_ENABLE_DEFAULT_METRICS', true),
'enable_command_metrics' => env('SENTRY_ENABLE_COMMAND_METRICS', true),
'enable_default_metrics' => env('SENTRY_ENABLE_DEFAULT_METRICS', false),
'enable_command_metrics' => env('SENTRY_ENABLE_COMMAND_METRICS', false),
'enable_pool_metrics' => env('SENTRY_ENABLE_POOL_METRICS', true),
'enable_queue_metrics' => env('SENTRY_ENABLE_QUEUE_METRICS', true),
'metrics_interval' => (int) env('SENTRY_METRICS_INTERVAL', 10),
Expand Down Expand Up @@ -182,9 +182,9 @@
],

// Transport configuration
'transport_channel_size' => (int) env('SENTRY_TRANSPORT_CHANNEL_SIZE', 65535),
'transport_concurrent_limit' => (int) env('SENTRY_TRANSPORT_CONCURRENT_LIMIT', 1000),
'transport_timeout' => (float) env('SENTRY_TRANSPORT_TIMEOUT', -1),
'transport_channel_size' => (int) env('SENTRY_TRANSPORT_CHANNEL_SIZE', 512),
'transport_concurrent_limit' => (int) env('SENTRY_TRANSPORT_CONCURRENT_LIMIT', 100),
'transport_timeout' => (float) env('SENTRY_TRANSPORT_TIMEOUT', 0),

'http_timeout' => (float) env('SENTRY_HTTP_TIMEOUT', 2.0),
];
Loading