@@ -8,17 +8,15 @@ use std::ops::Deref;
88use std:: sync:: { Arc , Mutex } ;
99use std:: { borrow:: Cow , fmt:: Display , str:: FromStr , sync:: OnceLock } ;
1010
11- use rustc_version_runtime:: version;
12-
1311use crate :: core:: configuration:: sources:: {
1412 CompositeConfigSourceResult , CompositeSource , ConfigKey , ConfigSourceOrigin ,
1513} ;
1614#[ path = "supported_configurations.rs" ]
1715mod supported_configurations;
18- pub ( crate ) use supported_configurations:: { is_alias_deprecated, SupportedConfigurations } ;
1916use crate :: core:: log:: LevelFilter ;
2017use crate :: core:: telemetry;
2118use crate :: { dd_error, dd_warn} ;
19+ pub ( crate ) use supported_configurations:: { is_alias_deprecated, SupportedConfigurations } ;
2220
2321/// Different types of remote configuration updates that can trigger callbacks
2422#[ derive( Debug , Clone ) ]
@@ -1010,10 +1008,10 @@ impl Config {
10101008 default. telemetry_heartbeat_interval ,
10111009 |interval : f64 | interval. abs ( ) ,
10121010 ) ,
1013- trace_propagation_style : cisu. update_parsed_with_transform (
1014- default. trace_propagation_style ,
1015- | DdTags ( tags ) | TracePropagationStyle :: from_tags ( Some ( tags) ) ,
1016- ) ,
1011+ trace_propagation_style : cisu
1012+ . update_parsed_with_transform ( default. trace_propagation_style , | DdTags ( tags ) | {
1013+ TracePropagationStyle :: from_tags ( Some ( tags) )
1014+ } ) ,
10171015 trace_propagation_style_extract : cisu. update_parsed_with_transform (
10181016 default. trace_propagation_style_extract ,
10191017 |DdTags ( tags) | TracePropagationStyle :: from_tags ( Some ( tags) ) ,
@@ -1032,10 +1030,10 @@ impl Config {
10321030 |interval : f64 | interval. abs ( ) . min ( RC_DEFAULT_POLL_INTERVAL ) ,
10331031 ) ,
10341032 remote_config_callbacks : Arc :: new ( Mutex :: new ( RemoteConfigCallbacks :: new ( ) ) ) ,
1035- datadog_tags_max_length : cisu. update_parsed_with_transform (
1036- default. datadog_tags_max_length ,
1037- | max : usize | max. min ( DATADOG_TAGS_MAX_LENGTH ) ,
1038- ) ,
1033+ datadog_tags_max_length : cisu
1034+ . update_parsed_with_transform ( default. datadog_tags_max_length , | max : usize | {
1035+ max. min ( DATADOG_TAGS_MAX_LENGTH )
1036+ } ) ,
10391037 otlp_metrics_protocol : cisu. update_string (
10401038 default. otlp_metrics_protocol ,
10411039 crate :: metrics_exporter:: OtlpProtocol :: parse_optional,
@@ -1084,7 +1082,6 @@ impl Config {
10841082 Self :: builder_with_sources ( & CompositeSource :: default_sources ( ) )
10851083 }
10861084
1087-
10881085 /// Returns the unique runtime identifier for this process.
10891086 pub fn runtime_id ( & self ) -> & str {
10901087 self . runtime_id
0 commit comments