forked from open-telemetry/opentelemetry-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add observable (async) counter to the metrics API (open-telemetry#1590)
* add observable counter * change the wording to allow language client to decide how to handle callback state * update based on discussion during the SIG meeting * add observer example * clarify that it is the instrument not meter being observed * clarify that duplicates are not allowed, and the sdk can decide how to handle it * address review feedback * fix typo * specify that the callback ensures a single timestamp * rename to CounterFunc * address review comments * clarify that the callback function should not take indefinite amount of time * update the wording for callback based on PR comments * add notes that CounterFunc callback returns absolute value instead of delta/rate * update the example based on feedback
- Loading branch information
Showing
1 changed file
with
128 additions
and
7 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