OpenTelemetry.jl icon indicating copy to clipboard operation
OpenTelemetry.jl copied to clipboard

Multiple measurement return in observable callback

Open lamdor opened this issue 1 year ago • 1 comments

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?

lamdor avatar Jul 27 '23 14:07 lamdor