Skip to content

Upgrading prometheus-fastapi-instrumentator 7 to 8

Breaking7.1.0 → 8.1.0Breaking1New1Fixed5

BreakingUpgrade verdict

1 breaking change.

  • This release moves to a newer major version of Starlette, so you need a newer Python and FastAPI to use it.
1 item needs code or config changes

Python requirement changed in 8.0.0: >=3.8 → >=3.10.

Breaking1
Ports the project to Starlette v1, requiring Python >=3.10, Starlette >=1.0.0,<2.0.0, and FastAPI >=0.133.0.
starlettefastapirequires-pythonStarletteASGIApp

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • changed: constructor PrometheusFastApiInstrumentator(should_group_status_codes: bool=…, should_ignore_untemplated: bool=…, should_group_untemplated: bool=…, should_round_latency_decimals: bool=…, should_respect_env_var: bool=…, should_instrument_requests_inprogress: bool=…, should_exclude_streaming_duration: bool=…, excluded_handlers: List[str]=…, body_handlers: List[str]=…, round_latency_decimals: int=…,… → constructor PrometheusFastApiInstrumentator(should_group_status_codes: bool=…, should_ignore_untemplated: bool=…, should_group_untemplated: bool=…, should_include_root_path: bool=…, should_round_latency_decimals: bool=…, should_respect_env_var: bool=…, should_instrument_requests_inprogress: bool=…, should_exclude_streaming_duration: bool=…, excluded_handlers: List[str]=…, body_handlers: List[str]…
  • changed: constructor PrometheusInstrumentatorMiddleware(app: Starlette, *, should_group_status_codes: bool=…, should_ignore_untemplated: bool=…, should_group_untemplated: bool=…, should_round_latency_decimals: bool=…, should_respect_env_var: bool=…, should_instrument_requests_inprogress: bool=…, should_exclude_streaming_duration: bool=…, excluded_handlers: Sequence[str]=…, body_handlers: Sequence[str]=…,… → constructor PrometheusInstrumentatorMiddleware(app: ASGIApp, *, should_group_status_codes: bool=…, should_ignore_untemplated: bool=…, should_group_untemplated: bool=…, should_include_root_path: bool=…, should_round_latency_decimals: bool=…, should_respect_env_var: bool=…, should_instrument_requests_inprogress: bool=…, should_exclude_streaming_duration: bool=…, excluded_handlers: Sequence[str]=…,…
  • changed: function get_route_name(request: HTTPConnection) -> Optional[str] → function get_route_name(request: HTTPConnection, should_include_root_path: bool) -> Optional[str]