From 1875cd95bd7d8eac27956fa788529ad5ec61310e Mon Sep 17 00:00:00 2001 From: legendecas Date: Fri, 13 May 2022 14:55:27 +0800 Subject: [PATCH] Clarify async instrument callback identity --- specification/metrics/api.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/metrics/api.md b/specification/metrics/api.md index c1189c8de52..df50f4f36ba 100644 --- a/specification/metrics/api.md +++ b/specification/metrics/api.md @@ -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: