Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify asynchronous instrument callback documentation and order-of-execution requirements #2361

Merged
merged 10 commits into from
Mar 1, 2022

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Feb 18, 2022

Part of #2350

Changes

As noted in #2350 (and a comment in #2317 by @anuraaga), the requirements for callbacks to behave a certain way apply to the user, not the implementation or the API designer. Therefore, specify these as documentation requirements.

@arminru arminru added area:api Cross language API specification issue spec:metrics Related to the specification/metrics directory labels Feb 22, 2022
specification/metrics/api.md Outdated Show resolved Hide resolved
@jmacd jmacd changed the title Make callback requirements apply to user documentation Clarify asynchronous instrument callback documentation and order-of-execution requirements Mar 1, 2022
@jmacd
Copy link
Contributor Author

jmacd commented Mar 1, 2022

While resolving with the updates in #2317, it felt important to add one related sentence. The order of callback execution is not specified. I want to add this sentence because even though we already state that users SHOULD NOT observe duplicate asynchronous measurements, I want it to be clear that there is no meaningful concept of "first value observed" or "last value observed".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:api Cross language API specification issue spec:metrics Related to the specification/metrics directory
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants