You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Measurements are returned directly by the user specified callbacks to async instruments, Measurement should be a concrete class in the API.
defmy_observable_counter_callback() ->Iterable[Measurement]:
return [
# the instrumentation needs to instantiate and return this directlyMeasurement(123, {"foo": "bar"}),
...
]
meter.create_observable_counter("my_observable_counter", callback=my_observable_counter_callback)
Since
Measurement
s are returned directly by the user specified callbacks to async instruments,Measurement
should be a concrete class in the API.spec: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#measurement
Measurement
a concrete classChildMeasurement
from testsThe text was updated successfully, but these errors were encountered: