Skip to content

Commit f8b79eb

Browse files
committed
Use variableNode for trace_propagation_targets
1 parent 9fa798c commit f8b79eb

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ public function getConfigTreeBuilder(): TreeBuilder
9191
->info('The sampling factor to apply to profiles. A value of 0 will deny sending any profiles, and a value of 1 will send all profiles. Profiles are sampled in relation to traces_sample_rate')
9292
->end()
9393
->scalarNode('traces_sampler')->end()
94-
->arrayNode('trace_propagation_targets')
95-
->scalarPrototype()->end()
96-
->beforeNormalization()->castToArray()->end()
97-
->end()
94+
->variableNode('trace_propagation_targets')->end()
9895
->booleanNode('attach_stacktrace')->end()
9996
->integerNode('context_lines')->min(0)->end()
10097
->booleanNode('enable_compression')->end()

tests/DependencyInjection/ConfigurationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public function testProcessConfigurationWithDefaultConfiguration(): void
2828
'options' => [
2929
'integrations' => [],
3030
'prefixes' => array_merge(['%kernel.project_dir%'], array_filter(explode(\PATH_SEPARATOR, get_include_path() ?: ''))),
31-
'trace_propagation_targets' => [],
3231
'environment' => '%kernel.environment%',
3332
'release' => PrettyVersions::getRootPackageVersion()->getPrettyVersion(),
3433
'tags' => [],

0 commit comments

Comments
 (0)