Skip to content

Commit

Permalink
Clarify async instrument callback identity
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed May 13, 2022
1 parent 16304ab commit 1875cd9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions specification/metrics/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,10 @@ Where the API supports registration of `callback` functions after
asynchronous instrumentation creation, the user MUST be able to undo
registration of the specific callback after its registration by some means.

Every currently registered Callback associated with an instrument MUST
be evaluted exactly once during collection prior to reading data for
that instrument.
Every registered Callback associated with a set of instruments MUST
be evaluated exactly once during collection prior to reading data for
that instrument. The evaluated is identified using a combination of the callback
itself, and the instruments set.

Callback functions MUST be documented as follows for the end user:

Expand Down

0 comments on commit 1875cd9

Please sign in to comment.