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

Multiple measurement return in observable callback #85

Open
lamdor opened this issue Jul 27, 2023 · 1 comment
Open

Multiple measurement return in observable callback #85

lamdor opened this issue Jul 27, 2023 · 1 comment

Comments

@lamdor
Copy link

lamdor commented Jul 27, 2023

I'd like to be able to return multiple measurements in a callback. These measurements will have different attributes so they will not conflict with one another. Before I implement this, I wanted to get some feedback on the best way to do this. My specific use is for an ObservableUpDownCounter for julia task work queue length, but I need to have them by threadid.

Would a vector of Tuple{T,NamedTuple} being returned be ok? Or a vector of Measurement{T}? Or perhaps either?

@findmyway
Copy link
Member

In that case, I'd prefer a vector of Measurement{T} with each one annotated with an attribute of threadid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants