Skip to content

Commit 1b583e2

Browse files
committed
Update default value for ratio to be nil
1 parent c216d4d commit 1b583e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/new_relic/agent/configuration/default_source.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,23 +1478,26 @@ def self.convert_to_constant_list(raw_value)
14781478
:description => 'This setting controls the behavior of transaction sampling when a remote parent is not sampled. Available values are `default`, `adaptive`, `always_on`, `always_off`, and `trace_id_ratio_based`. At this time `default` and `adaptive` are the same.'
14791479
},
14801480
:'distributed_tracing.sampler.root.trace_id_ratio_based.ratio' => {
1481-
:default => 2.0,
1481+
:default => nil,
14821482
:public => true,
14831483
:type => Float,
1484+
:allow_nil => true,
14841485
:allowed_from_server => false,
14851486
:description => 'The ratio used for the trace_id_ratio_based sampling decision for the root sampler. This must be a float between 0.0 and 1.0. If you provide an invalid value, the sampler will not use the trace_id_ratio_based sampler and will return to the default behavior. If you do not provide a value, the sampler will not use the trace_id_ratio_based_sampler and fall back to the default sampler.'
14861487
},
14871488
:'distributed_tracing.sampler.remote_parent_sampled.trace_id_ratio_based.ratio' => {
1488-
:default => 2.0,
1489+
:default => nil,
14891490
:public => true,
14901491
:type => Float,
1492+
:allow_nil => true,
14911493
:allowed_from_server => false,
14921494
:description => 'The ratio used for the trace_id_ratio_based sampling decision for the remote parent sampled sampler. This must be a float between 0.0 and 1.0. If you provide an invalid value, the sampler will not use the trace_id_ratio_based sampler and will return to the default behavior. If you do not provide a value, the sampler will not use the trace_id_ratio_based_sampler and fall back to the default sampler.'
14931495
},
14941496
:'distributed_tracing.sampler.remote_parent_not_sampled.trace_id_ratio_based.ratio' => {
1495-
:default => 2.0,
1497+
:default => nil,
14961498
:public => true,
14971499
:type => Float,
1500+
:allow_nil => true,
14981501
:allowed_from_server => false,
14991502
:description => 'The ratio used for the trace_id_ratio_based sampling decision for the remote parent not sampled sampler. This must be a float between 0.0 and 1.0. If you provide an invalid value or do not provide a value, the sampler will not use the trace_id_ratio_based_sampler and fall back to the default sampler.'
15001503
},

0 commit comments

Comments
 (0)