feat: added execution duration and updated collection-metrics (#2257)

This commit is contained in:
Deepanshu Dhruw
2022-04-18 22:43:43 +05:30
committed by GitHub
parent 62a5beb52f
commit 06937fe9e8
10 changed files with 400 additions and 74 deletions

View File

@@ -5,3 +5,8 @@ export const responseErrors: ResponseErrorPair = {
408: "NETWORK TIMEOUT",
400: "BAD REQUEST",
} as const;
/**
* Default decimal precision to round-off calculated HRTime time in seconds.
*/
export const DEFAULT_DURATION_PRECISION: number = 3;