@@ -59,6 +59,7 @@ public static function openTelemetryConfigurationDataProvider(): iterable
5959 {
6060 yield 'kitchen-sink ' => [__DIR__ . '/configurations/kitchen-sink.yaml ' ];
6161 yield 'anchors ' => [__DIR__ . '/configurations/anchors.yaml ' ];
62+ yield 'php-specific ' => [__DIR__ . '/configurations/php-specific.yaml ' ];
6263 }
6364
6465 public function test_configurators (): void
@@ -221,7 +222,7 @@ public function test_resource_attributes_take_precedence_over_default_attributes
221222 );
222223
223224 $ sdk = $ factory ->process ([Yaml::parse (/** @lang yaml */ <<<'YAML'
224- file_format: "0.4 "
225+ file_format: "1.0-rc.2 "
225226 resource:
226227 attributes:
227228 - { name: service.name, value: test-service }
@@ -240,7 +241,7 @@ public function test_resource_detectors_take_precedence_over_default_attributes(
240241 );
241242
242243 $ sdk = $ factory ->process ([Yaml::parse (/** @lang yaml */ <<<'YAML'
243- file_format: "0.4 "
244+ file_format: "1.0-rc.2 "
244245 resource:
245246 detection/development:
246247 detectors:
@@ -262,7 +263,7 @@ public function test_resource_attributes_take_precedence_over_resource_detectors
262263 );
263264
264265 $ sdk = $ factory ->process ([Yaml::parse (/** @lang yaml */ <<<'YAML'
265- file_format: "0.4 "
266+ file_format: "1.0-rc.2 "
266267 resource:
267268 attributes:
268269 - { name: service.name, value: test-service }
@@ -302,7 +303,7 @@ public function getConfig(ComponentProviderRegistry $registry, NodeBuilder $buil
302303 );
303304
304305 $ sdk = $ factory ->process ([Yaml::parse (/** @lang yaml */ <<<'YAML'
305- file_format: "0.4 "
306+ file_format: "1.0-rc.2 "
306307 resource:
307308 attributes:
308309 - { name: service.name, value: test-service }
@@ -331,4 +332,11 @@ private function getResource(Sdk $sdk): ResourceInfo
331332
332333 return $ resource ;
333334 }
335+
336+ public function test_empty_tracer_configurator_config (): void
337+ {
338+ $ file = __DIR__ . '/configurations/empty-tracer-config.yaml ' ;
339+ $ this ->expectNotToPerformAssertions ();
340+ Configuration::parseFile ($ file )->create ();
341+ }
334342}
0 commit comments