Skip to content

Commit 021cd73

Browse files
committed
remove cold start tag
1 parent feecc5f commit 021cd73

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

bottlecap/src/lifecycle/invocation/processor.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,13 @@ impl Processor {
254254
self.runtime = Some(runtime);
255255
}
256256

257-
self.dynamic_tags
258-
.insert(String::from("cold_start"), cold_start.to_string());
257+
// Skip cold_start tag in Managed Instance mode
258+
// We don't want to send this tag for spans, as the experience
259+
// won't look good due to the time gap in the flame graph.
260+
if !self.aws_config.is_managed_instance_mode() {
261+
self.dynamic_tags
262+
.insert(String::from("cold_start"), cold_start.to_string());
263+
}
259264

260265
if proactive_initialization {
261266
self.dynamic_tags.insert(

0 commit comments

Comments
 (0)