Skip to content

Commit f6f084a

Browse files
authored
Function call counter should be initialized to zero (#61)
1 parent 9ea6a92 commit f6f084a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SPEC.md

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ When the metrics are exported to Prometheus, all dot (`.`) separators are replac
7979

8080
This metric is a 64-bit monotonic counter that tracks the number of times a given function was invoked.
8181

82+
If possible, libraries SHOULD start this counter off at zero (by incrementing the counter by 0) in order to expose the names of instrumented functions to visualization tools that use the metrics. Libraries SHOULD use as many of the labels as possible for the initial call to increment by zero, including those related to objectives and setting `result="ok"`.
83+
8284
### `function.calls.duration`
8385

8486
> **Required Labels:** [`function`](#function), [`module`](#module), [`service.name`](#servicename)

0 commit comments

Comments
 (0)