|
2 | 2 |
|
3 | 3 | declare(strict_types=1);
|
4 | 4 |
|
| 5 | +use Sentry\Transport\HttpTransport; |
5 | 6 | use Symfony\Component\DependencyInjection\ContainerBuilder;
|
6 | 7 |
|
7 | 8 | /** @var ContainerBuilder $container */
|
8 | 9 | $container->loadFromExtension('sentry', [
|
9 | 10 | 'dsn' => 'https://[email protected]/0',
|
10 |
| - 'logger' => 'app.logger', |
11 | 11 | 'options' => [
|
12 | 12 | 'integrations' => ['App\\Sentry\\Integration\\FooIntegration'],
|
13 | 13 | 'default_integrations' => false,
|
14 |
| - 'send_attempts' => 1, |
15 | 14 | 'prefixes' => ['%kernel.project_dir%'],
|
16 | 15 | 'sample_rate' => 1,
|
| 16 | + 'enable_tracing' => true, |
17 | 17 | 'traces_sample_rate' => 1,
|
18 |
| - 'profiles_sample_rate' => 1, |
19 | 18 | 'traces_sampler' => 'App\\Sentry\\Tracing\\TracesSampler',
|
20 |
| - 'trace_propagation_targets' => ['website.invalid'], |
| 19 | + 'profiles_sample_rate' => 1, |
21 | 20 | 'attach_stacktrace' => true,
|
| 21 | + 'attach_metric_code_locations' => true, |
22 | 22 | 'context_lines' => 0,
|
23 |
| - 'enable_compression' => true, |
24 | 23 | 'environment' => 'development',
|
25 | 24 | 'logger' => 'php',
|
| 25 | + 'spotlight' => true, |
| 26 | + 'spotlight_url' => 'http://localhost:8969', |
26 | 27 | 'release' => '4.0.x-dev',
|
27 | 28 | 'server_name' => 'localhost',
|
| 29 | + 'ignore_exceptions' => ['Symfony\Component\HttpKernel\Exception\BadRequestHttpException'], |
| 30 | + 'ignore_transactions' => ['GET tracing_ignored_transaction'], |
28 | 31 | 'before_send' => 'App\\Sentry\\BeforeSendCallback',
|
29 | 32 | 'before_send_transaction' => 'App\\Sentry\\BeforeSendTransactionCallback',
|
| 33 | + 'before_send_check_in' => 'App\\Sentry\\BeforeSendCheckInCallback', |
| 34 | + 'before_send_metrics' => 'App\\Sentry\\BeforeSendMetricsCallback', |
| 35 | + 'trace_propagation_targets' => ['website.invalid'], |
30 | 36 | 'tags' => [
|
31 | 37 | 'context' => 'development',
|
32 | 38 | ],
|
|
37 | 43 | 'in_app_include' => ['%kernel.project_dir%'],
|
38 | 44 | 'send_default_pii' => true,
|
39 | 45 | 'max_value_length' => 255,
|
| 46 | + 'transport' => 'App\\Sentry\\Transport', |
| 47 | + 'http_client' => 'App\\Sentry\\HttpClient', |
40 | 48 | 'http_proxy' => 'proxy.example.com:8080',
|
41 |
| - 'http_timeout' => 10, |
| 49 | + 'http_proxy_authentication' => 'user:password', |
42 | 50 | 'http_connect_timeout' => 15,
|
| 51 | + 'http_timeout' => 10, |
| 52 | + 'http_ssl_verify_peer' => true, |
| 53 | + 'http_compression' => true, |
43 | 54 | 'capture_silenced_errors' => true,
|
44 | 55 | 'max_request_body_size' => 'none',
|
45 | 56 | 'class_serializers' => ['App\\FooClass' => 'App\\Sentry\\Serializer\\FooClassSerializer'],
|
46 |
| - 'ignore_exceptions' => ['Symfony\Component\HttpKernel\Exception\BadRequestHttpException'], |
47 |
| - 'ignore_transactions' => ['GET tracing_ignored_transaction'], |
48 | 57 | ],
|
49 | 58 | 'messenger' => [
|
50 | 59 | 'enabled' => true,
|
|
0 commit comments