File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
bottlecap/src/lifecycle/invocation Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -285,11 +285,8 @@ impl Processor {
285285 /// This is used to create a cold start span, since this telemetry event does not
286286 /// provide a `request_id`, we try to guess which invocation is the cold start.
287287 pub fn on_platform_init_start ( & mut self , time : DateTime < Utc > , runtime_version : Option < String > ) {
288- if let Some ( ref rv) = runtime_version {
289- debug ! ( "Runtime version: {}" , rv) ;
290- if rv. contains ( "DurableFunction" ) {
291- self . enhanced_metrics . set_durable_function_tag ( ) ;
292- }
288+ if runtime_version. as_deref ( ) . map_or ( false , |rv| rv. contains ( "DurableFunction" ) ) {
289+ self . enhanced_metrics . set_durable_function_tag ( ) ;
293290 }
294291 let start_time: i64 = SystemTime :: from ( time)
295292 . duration_since ( UNIX_EPOCH )
You can’t perform that action at this time.
0 commit comments