You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/autometrics_v1.0.0.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Libraries MAY need an initialization function.
47
47
Libraries SHOULD expose functionality to make the metrics available to the
48
48
user in either the Prometheus text format or the OpenTelemetry Protocol (otlp).
49
49
It is up to the user to decide whether they want to implement a push or pull
50
-
based model. Libraries MAY provide higher level implementation to expose the
50
+
based model. Libraries MAY provide higher level implementations to expose the
51
51
metrics in a push or pull based model.
52
52
53
53
### Service-Level Objectives (SLOs)
@@ -113,7 +113,7 @@ then it MUST always set the result to `ok`.
113
113
If the library is able to determine which function called the given function,
114
114
then it MUST set the caller information in the `caller.function` and
115
115
`caller.module` labels. If the caller is not known, either it is the entrypoint
116
-
or the library is unable to determine the caller, then the `caller.function` and
116
+
or the library is unable to determine the caller, in which case the `caller.function` and
117
117
`caller.module` labels MAY be absent or empty (`""`).
118
118
119
119
### `function.calls.duration`
@@ -134,6 +134,7 @@ latency of function calls.
134
134
|[`service.name`](#servicename)| required ||
135
135
|[`objective.name`](#objectivename)| optional | if an [objective](#service-level-objectives-slos) is attached to the given function |
136
136
|[`objective.percentile`](#objectivepercentile)| optional | if an [objective](#service-level-objectives-slos) is attached to the given function |
137
+
|[`objective.latency_threshold`](#objectivelatency_threshold)| optional | if an [objective](#service-level-objectives-slos) is attached to the given function |
137
138
138
139
A library MUST track the duration in seconds.
139
140
@@ -143,7 +144,7 @@ Library SHOULD allow the user to override these default buckets.
143
144
144
145
### `build_info`
145
146
146
-
A metrics that contains metadata related to the application. It should be
147
+
A metric that contains metadata related to the application. It should be
147
148
possible to join this metric with other metrics to enrich other metrics.
0 commit comments