trallnag / prometheus-fastapi-instrumentator

Instrument your FastAPI with Prometheus metrics.
ISC License
929 stars 83 forks source link

Inprogress requests causes duplicated prometheus timeseries error #269

Open vogre opened 11 months ago

vogre commented 11 months ago
ValueError: Duplicated timeseries in CollectorRegistry: {'http_requests_inprogress'}

This happens if the FastAPI stack is rebuilt, e.g. when adding an exception handler after adding the fastapi instrumentator.