@@ -358,13 +358,13 @@ pub struct EnvConfig {
358358 /// The maximum depth of the Lambda payload to capture.
359359 /// Default is `10`. Requires `capture_lambda_payload` to be `true`.
360360 pub capture_lambda_payload_max_depth : Option < u32 > ,
361- /// @env `DD_COMPUTE_TRACE_STATS `
361+ /// @env `DD_COMPUTE_TRACE_STATS_ON_EXTENSION `
362362 ///
363363 /// If true, enable computation of trace stats on the extension side.
364364 /// If false, trace stats will be computed on the backend side.
365365 /// Default is `false`.
366366 #[ serde( deserialize_with = "deserialize_optional_bool_from_anything" ) ]
367- pub compute_trace_stats : Option < bool > ,
367+ pub compute_trace_stats_on_extension : Option < bool > ,
368368 /// @env `DD_SERVERLESS_APPSEC_ENABLED`
369369 ///
370370 /// Enable Application and API Protection (AAP), previously known as AppSec/ASM, for AWS Lambda.
@@ -571,7 +571,7 @@ fn merge_config(config: &mut Config, env_config: &EnvConfig) {
571571 merge_option_to_value ! ( config, env_config, lambda_proc_enhanced_metrics) ;
572572 merge_option_to_value ! ( config, env_config, capture_lambda_payload) ;
573573 merge_option_to_value ! ( config, env_config, capture_lambda_payload_max_depth) ;
574- merge_option_to_value ! ( config, env_config, compute_trace_stats ) ;
574+ merge_option_to_value ! ( config, env_config, compute_trace_stats_on_extension ) ;
575575 merge_option_to_value ! ( config, env_config, serverless_appsec_enabled) ;
576576 merge_option ! ( config, env_config, appsec_rules) ;
577577 merge_option_to_value ! ( config, env_config, appsec_waf_timeout) ;
@@ -765,7 +765,7 @@ mod tests {
765765 jail. set_env ( "DD_LAMBDA_PROC_ENHANCED_METRICS" , "false" ) ;
766766 jail. set_env ( "DD_CAPTURE_LAMBDA_PAYLOAD" , "true" ) ;
767767 jail. set_env ( "DD_CAPTURE_LAMBDA_PAYLOAD_MAX_DEPTH" , "5" ) ;
768- jail. set_env ( "DD_COMPUTE_TRACE_STATS " , "true" ) ;
768+ jail. set_env ( "DD_COMPUTE_TRACE_STATS_ON_EXTENSION " , "true" ) ;
769769 jail. set_env ( "DD_SERVERLESS_APPSEC_ENABLED" , "true" ) ;
770770 jail. set_env ( "DD_APPSEC_RULES" , "/path/to/rules.json" ) ;
771771 jail. set_env ( "DD_APPSEC_WAF_TIMEOUT" , "1000000" ) ; // Microseconds
@@ -915,7 +915,7 @@ mod tests {
915915 lambda_proc_enhanced_metrics : false ,
916916 capture_lambda_payload : true ,
917917 capture_lambda_payload_max_depth : 5 ,
918- compute_trace_stats : true ,
918+ compute_trace_stats_on_extension : true ,
919919 serverless_appsec_enabled : true ,
920920 appsec_rules : Some ( "/path/to/rules.json" . to_string ( ) ) ,
921921 appsec_waf_timeout : Duration :: from_secs ( 1 ) ,
0 commit comments