Skip to content

Commit 418cf99

Browse files
lym953claude
andcommitted
docs: note that platform.initStart is assumed to follow Invoke
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent d39d15e commit 418cf99

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bottlecap/src/lifecycle/invocation/processor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ pub struct Processor {
113113
init_duration_metric_emitted: bool,
114114
/// Timestamp of the cold-start invocation metric in On-Demand mode, held back until
115115
/// `platform.initStart` sets the durable tag so it's not missed on invocation #1.
116+
///
117+
/// This assumes `platform.initStart` always arrives after the Invoke event, which is what
118+
/// we've observed in production.
116119
pending_first_invocation_metric_timestamp: Option<i64>,
117120
}
118121

0 commit comments

Comments
 (0)