feat: add timing for the api request parse

This commit is contained in:
Laurence Isla
2023-11-24 16:29:25 -05:00
committed by Steve Chavez
parent 850b15fe13
commit b538ab9823
3 changed files with 40 additions and 30 deletions
+2
View File
@@ -12,6 +12,7 @@ import Protolude
data ServerMetric =
SMJwt
| SMParse
| SMRender
| SMPlan
| SMTransaction
@@ -32,3 +33,4 @@ renderTiming (metric, time) = maybe "" (\x -> BS.concat [renderMetric metric, BS
renderMetric SMTransaction = "transaction"
renderMetric SMRender = "render"
renderMetric SMJwt = "jwt"
renderMetric SMParse = "parse"