client_python
client_python copied to clipboard
Make `Gauge.set_function` multiprocess-compatible
This makes the _child_samples() callback that Gauge.set_function genereates
stash the callback's value in the _value, so that you can make a
callback-based Gauge in a subprocess and expect it to be visible in other
processes' metrics collection.