Skip to content

fix(deps): update dependency prometheus-fastapi-instrumentator to v5.11.1 - autoclosed

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
prometheus-fastapi-instrumentator 5.10.0 -> 5.11.1 age adoption passing confidence

Release Notes

trallnag/prometheus-fastapi-instrumentator

v5.11.1

Compare Source

Fixed
  • Improved typing hints and enabled stricter rules for MyPy. Thanks to @​tomtom103 for implementing this in #​231.

v5.11.0

Compare Source

Minor release containing several fixes and a small enhancement. Fixes are related to multi process mode, a regression introduced with the previous release, and errors that started to occur with current versions of Starlette and FastAPI.

Ask or discuss anything quick about the release in the discussion #​221.

Added
  • Adjusted the add() method to accept an arbitrary number of instrumentation functions as arguments instead of a single one. Non-breaking change. Implemented in pull request #​230.
Fixed
  • Fixed multi process mode in expose() method that handles the /metrics endpoint. Due to reusing the registry assigned to the instrumentator it could lead to duplicated metrics. Now the endpoint follows recommendation from Prometheus client library documentation. Also improved multi process unit tests. Closed issue #​228 and #​227. Fixed in pull request #​229.

  • Fixed NameError and "Duplicated timeseries..." errors that started to occur with latest versions of Starlette / FastAPI in combination with multiple middlewares. Instrumentation closures are now optional and the instrumentator handles this accordingly. Thanks to @​alexted and others for reporting errors. Thanks to @​frankie567 for pointing out the change in Starlette. Related to pull request #​153 and issue #​214. Closed issue #​219. Done in pull request #​220.

  • Added missing registry parameter to remaining metrics functions. This enables passing custom registry to other metrics functions than default. Related to pull request #​153. Closed issue #​219. Done in pull request #​220.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports