claws / aioprometheus

A Prometheus Python client library for asyncio-based applications
174 stars 21 forks source link

Middleware does not use specified registry #70

Closed JacobHenner closed 2 years ago

JacobHenner commented 2 years ago

MetricsMiddleware accepts an optional registry parameter, but it does not pass that registry to the four Counters it creates. Instead, each Counter defaults to the default registry REGISTRY. This is unexpected behavior.