CancellationTokens support in ScrapeHandler
utybo opened this issue · 2 comments
utybo commented
Hi! First of all, thank you for your work on Prometheus.Client.
While migrating an application from prometheus-net
to Prometheus.Client
, I noticed that prometheus-net
's ICollectorRegistry
supports CancellationToken
s, while Prometheus.Client
's ScrapeHandler
does not. It does not seem like the underlying ICollector
functions support cancellation tokens either, unfortunately. Would there be a way to add such support?
phnx47 commented
It is planned for the next major release