Skip to content

Commit dce9e46

Browse files
committed
Clarify async instrument callback identity
1 parent 16304ab commit dce9e46

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ release.
1313

1414
### Metrics
1515

16+
- Clarify async instrument callback identity.
17+
([#2538](https://github.com/open-telemetry/opentelemetry-specification/pull/2538)).
18+
1619
### Logs
1720

1821
### Resource

specification/metrics/api.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,10 @@ Where the API supports registration of `callback` functions after
355355
asynchronous instrumentation creation, the user MUST be able to undo
356356
registration of the specific callback after its registration by some means.
357357

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

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

0 commit comments

Comments
 (0)