Use the timer for benchmarking a rule

This commit is contained in:
Jeroen Engels 2022-11-04 15:16:21 +01:00
parent 4710c132d4
commit f468a45984

View File

@ -6145,15 +6145,15 @@ isInSourceDirectories (Metadata metadata) =
startedRule : String -> List ( String, Encode.Value )
startedRule name =
[ ( "type", Encode.string "rule-start" )
, ( "ruleName", Encode.string name )
[ ( "type", Encode.string "timer-start" )
, ( "metric", Encode.string ("Running " ++ name) )
]
endedRule : String -> List ( String, Encode.Value )
endedRule name =
[ ( "type", Encode.string "rule-end" )
, ( "ruleName", Encode.string name )
[ ( "type", Encode.string "timer-end" )
, ( "metric", Encode.string ("Running " ++ name) )
]