prom-client-net/prom-client

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 CancellationTokens, 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?

@utybo Thank you for the issue. I will investigate this

It is planned for the next major release