opentelemetry-python
opentelemetry-python copied to clipboard
Histogram timer context manager
It would be nice to provide something like this.
with hist.record():
...
This is definitely needed for good ergonomics. I have had to add this in to my wrapper around the library for easier migration from Prometheus.