Skip to content

Commit b60c246

Browse files
authored
fix: bump flush_timeout default (#697)
A little goofy because we use this to determine when/how to move over to continuous flushing, but the gist is that our invocation context tracks the start time of each invocation. Because it's all local to a single sandbox, this means that the time diff between invocations includes post runtime duration, so it's very common to have 20 invocations greater than 10s if there are even a couple of periodic/end flushes in there. This customizable with `DD_FLUSH_TIMEOUT` so if people want to set it to a very short timeout, they are able to.
1 parent 2abf44d commit b60c246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bottlecap/src/config/env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl Default for Config {
135135
api_key_secret_arn: String::default(),
136136
kms_api_key: String::default(),
137137
serverless_flush_strategy: FlushStrategy::Default,
138-
flush_timeout: 10,
138+
flush_timeout: 30,
139139
// Unified Tagging
140140
env: None,
141141
service: None,

0 commit comments

Comments
 (0)