Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions bottlecap/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ pub struct LambdaConfig {

/// Maximum number of request IDs whose logs are held in `held_logs` waiting for durable
/// execution context. Set to 0 to disable log holding; logs will be flushed immediately
/// without durable execution context enrichment. Defaults to 0 until the tracer-side
/// durable execution support is released; set to 50 to re-enable enrichment.
/// without durable execution context enrichment. Holding begins at cold start, before the
/// extension knows whether the function is durable, and stops for non-durable functions
/// once `PlatformInitStart` resolves that.
pub lambda_durable_function_log_buffer_size: usize,

// Data Streams Monitoring
Expand Down Expand Up @@ -120,7 +121,7 @@ impl Default for LambdaConfig {
api_security_enabled: true,
api_security_sample_delay: Duration::from_secs(30),
custom_metrics_exclude_tags: Vec::new(),
lambda_durable_function_log_buffer_size: 0,
lambda_durable_function_log_buffer_size: 5,
dsm_consume_enabled: false,
dsm_exchange_name: None,
dsm_kafka_group: None,
Expand Down Expand Up @@ -197,7 +198,7 @@ pub struct LambdaConfigSource {

/// `DD_LAMBDA_DURABLE_FUNCTION_LOG_BUFFER_SIZE` — max number of request IDs
/// whose logs are held waiting for durable execution context. Defaults to
/// 0 (hold mechanism disabled).
/// 5; set to 0 to disable the hold mechanism.
#[serde(deserialize_with = "deser_opt_lossless")]
pub lambda_durable_function_log_buffer_size: Option<usize>,

Expand Down
Loading