-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename metrics to spec and add descriptions (#90)
* add constants file for names and descriptions * rename metrics and add descriptions * update tests
- Loading branch information
1 parent
714888b
commit 54e7cc0
Showing
5 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Metrics | ||
export const COUNTER_NAME = "function.calls" as const; | ||
export const HISTOGRAM_NAME = "function.calls.duration" as const; | ||
export const GAUGE_NAME = "function.calls.concurrent" as const; | ||
export const BUILD_INFO_NAME = "build_info" as const; | ||
|
||
// Descriptions | ||
export const COUNTER_DESCRIPTION = | ||
"Autometrics counter for tracking function calls" as const; | ||
export const HISTOGRAM_DESCRIPTION = | ||
"Autometrics histogram for tracking function call duration" as const; | ||
export const GAUGE_DESCRIPTION = | ||
"Autometrics gauge for tracking concurrent function calls" as const; | ||
export const BUILD_INFO_DESCRIPTION = | ||
"Autometrics info metric for tracking software version and build details" as const; | ||
|
||
// Units | ||
export const HISTOGRAM_UNIT = "seconds" as const; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters