@@ -198,47 +198,58 @@ public function testClientIsCreatedFromOptions(): void
198
198
$ container = $ this ->createContainerFromFixture ('full ' );
199
199
$ optionsDefinition = $ container ->getDefinition ('sentry.client.options ' );
200
200
$ expectedOptions = [
201
+ 'dsn ' =>
'https://[email protected] /0 ' ,
201
202
'integrations ' => new Reference (IntegrationConfigurator::class),
202
203
'default_integrations ' => false ,
203
- 'send_attempts ' => 1 ,
204
204
'prefixes ' => [$ container ->getParameter ('kernel.project_dir ' )],
205
205
'sample_rate ' => 1 ,
206
+ 'enable_tracing ' => true ,
206
207
'traces_sample_rate ' => 1 ,
207
- 'profiles_sample_rate ' => 1 ,
208
208
'traces_sampler ' => new Reference ('App \\Sentry \\Tracing \\TracesSampler ' ),
209
- 'trace_propagation_targets ' => [ ' website.invalid ' ] ,
209
+ 'profiles_sample_rate ' => 1 ,
210
210
'attach_stacktrace ' => true ,
211
+ 'attach_metric_code_locations ' => true ,
211
212
'context_lines ' => 0 ,
212
- 'enable_compression ' => true ,
213
213
'environment ' => 'development ' ,
214
214
'logger ' => 'php ' ,
215
+ 'spotlight ' => true ,
216
+ 'spotlight_url ' => 'http://localhost:8969 ' ,
215
217
'release ' => '4.0.x-dev ' ,
216
218
'server_name ' => 'localhost ' ,
219
+ 'ignore_exceptions ' => [
220
+ 'Symfony\Component\HttpKernel\Exception\BadRequestHttpException ' ,
221
+ ],
222
+ 'ignore_transactions ' => [
223
+ 'GET tracing_ignored_transaction ' ,
224
+ ],
217
225
'before_send ' => new Reference ('App \\Sentry \\BeforeSendCallback ' ),
218
226
'before_send_transaction ' => new Reference ('App \\Sentry \\BeforeSendTransactionCallback ' ),
219
- 'tags ' => ['context ' => 'development ' ],
227
+ 'before_send_check_in ' => new Reference ('App \\Sentry \\BeforeSendCheckInCallback ' ),
228
+ 'before_send_metrics ' => new Reference ('App \\Sentry \\BeforeSendMetricsCallback ' ),
229
+ 'trace_propagation_targets ' => ['website.invalid ' ],
230
+ 'tags ' => [
231
+ 'context ' => 'development '
232
+ ],
220
233
'error_types ' => \E_ALL ,
221
234
'max_breadcrumbs ' => 1 ,
222
235
'before_breadcrumb ' => new Reference ('App \\Sentry \\BeforeBreadcrumbCallback ' ),
223
236
'in_app_exclude ' => [$ container ->getParameter ('kernel.cache_dir ' )],
224
237
'in_app_include ' => [$ container ->getParameter ('kernel.project_dir ' )],
225
238
'send_default_pii ' => true ,
226
239
'max_value_length ' => 255 ,
240
+ 'transport ' => new Reference ('App \\Sentry \\Transport ' ),
241
+ 'http_client ' => new Reference ('App \\Sentry \\HttpClient ' ),
227
242
'http_proxy ' => 'proxy.example.com:8080 ' ,
243
+ 'http_proxy_authentication ' => 'user:password ' ,
228
244
'http_timeout ' => 10 ,
229
245
'http_connect_timeout ' => 15 ,
246
+ 'http_ssl_verify_peer ' => true ,
247
+ 'http_compression ' => true ,
230
248
'capture_silenced_errors ' => true ,
231
249
'max_request_body_size ' => 'none ' ,
232
250
'class_serializers ' => [
233
251
'App \\FooClass ' => new Reference ('App \\Sentry \\Serializer \\FooClassSerializer ' ),
234
252
],
235
- 'dsn ' =>
'https://[email protected] /0 ' ,
236
- 'ignore_exceptions ' => [
237
- 'Symfony\Component\HttpKernel\Exception\BadRequestHttpException ' ,
238
- ],
239
- 'ignore_transactions ' => [
240
- 'GET tracing_ignored_transaction ' ,
241
- ],
242
253
];
243
254
244
255
$ this ->assertSame (Options::class, $ optionsDefinition ->getClass ());
0 commit comments