prometheus-fastapi-instrumentator breaking changes
prometheus-fastapi-instrumentator 8.0.0 (May 29, 2026) is its newest release with breaking changes, 5 of them. The first: prometheus-fastapi-instrumentator 8.0.0 drops support for Python 3.8 and requires Python 3.10 or later. Every breaking API change we have recorded in prometheus-fastapi-instrumentator on PyPI: 25 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.1.0, released July 26, 2026. Source repository
Its 8.0.0 release requires Python 3.10 or later. Python end of life dates.
- From 7.0.0 to 8.0.0: 5 breaking changes in 1 version.
- From 6.0.0 to 8.0.0: 19 breaking changes in 2 versions.
prometheus-fastapi-instrumentator 8.0.0 breaking changes
- Removed
The package now requires Python 3.10 or later, so users on Python 3.8 or 3.9 must upgrade Python before installing this release. github.com - Configuration changed
The starlette dependency range moved from below 1.0.0 to 1.x, so projects pinned to Starlette 0.x must upgrade Starlette to use this release. github.com - Signature changed
The app parameter type changed from Starlette to ASGIApp, so code that relies on the old type annotation or expects a Starlette instance specifically may need updating. github.com - Signature changed
prometheus_fastapi_instrumentator.instrumentation.PrometheusInstrumentatorMiddleware.__init__
Was def __init__(self, app: Starlette, *, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool =... pypi.org - Signature changed
prometheus_fastapi_instrumentator.middleware.PrometheusInstrumentatorMiddleware.__init__
Was def __init__(self, app: Starlette, *, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool =... pypi.org
prometheus-fastapi-instrumentator 7.0.0 breaking changes
- Removed
Python 3.7 is no longer supported. Users on Python 3.7 must stay on an older release or upgrade Python. github.com - Removed
Python 3.7 is no longer supported by the package build. Users on Python 3.7 must stay on an older release or upgrade Python. github.com - Signature changed
prometheus_fastapi_instrumentator.instrumentation.PrometheusFastApiInstrumentator.__init__
Was def __init__(self, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool = False... pypi.org - Signature changed
prometheus_fastapi_instrumentator.instrumentation.PrometheusFastApiInstrumentator.expose
Was def expose(self, app: FastAPI, should_gzip: bool = False, endpoint: str = '/metrics', include_in_schema: bool = True, tags: Optional[List[Union[str, Enum]]] = None, **kwargs: Any) -> PrometheusFastApiInstrumentator; now def... pypi.org - Signature changed
prometheus_fastapi_instrumentator.instrumentation.PrometheusFastApiInstrumentator.instrument
Was def instrument(self, app: FastAPI, metric_namespace: str = '', metric_subsystem: str = '', should_only_respect_2xx_for_highr: bool = False, latency_highr_buckets: Sequence[Union[float, str]] = (0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5... pypi.org - Signature changed
prometheus_fastapi_instrumentator.instrumentation.PrometheusInstrumentatorMiddleware.__init__
Was def __init__(self, app: FastAPI, *, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool =... pypi.org - Signature changed
prometheus_fastapi_instrumentator.metrics.default
Was def default(metric_namespace: str = '', metric_subsystem: str = '', should_only_respect_2xx_for_highr: bool = False, latency_highr_buckets: Sequence[Union[float, str]] = (0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 1.5, 2, 2.5... pypi.org - Signature changed
prometheus_fastapi_instrumentator.metrics.Info.__init__
Was def __init__(self, request: Request, response: Optional[Response], method: str, modified_handler: str, modified_status: str, modified_duration: float); now def __init__(self, request: Request, response: Optional[Response], method: str... pypi.org - Signature changed
prometheus_fastapi_instrumentator.metrics.latency
Was def latency(metric_name: str = 'http_request_duration_seconds', metric_doc: str = 'Duration of HTTP requests in seconds', metric_namespace: str = '', metric_subsystem: str = '', should_include_handler: bool = True... pypi.org - Signature changed
prometheus_fastapi_instrumentator.middleware.PrometheusInstrumentatorMiddleware.__init__
Was def __init__(self, app: FastAPI, *, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool =... pypi.org
And 4 more in this version. Sign up to see every change
prometheus-fastapi-instrumentator 6.0.0 breaking changes
- Behavior changed
info.response.body
Passing the response body to instrumentation functions is now off by default and must be enabled via the new body_handlers constructor parameter; custom instrumentations reading info.response.body need this opt-in. github.com - Default changed
Instrumentator
The new body_handlers parameter defaults to an empty list, so no handlers receive the response body unless patterns are passed. github.com - Signature changed
prometheus_fastapi_instrumentator.instrumentation.PrometheusFastApiInstrumentator.__init__
Was def __init__(self, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool = False... pypi.org - Signature changed
prometheus_fastapi_instrumentator.instrumentation.PrometheusInstrumentatorMiddleware.__init__
Was def __init__(self, app: FastAPI, *, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool =... pypi.org - Signature changed
prometheus_fastapi_instrumentator.middleware.PrometheusInstrumentatorMiddleware.__init__
Was def __init__(self, app: FastAPI, *, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool =... pypi.org - Signature changed
prometheus_fastapi_instrumentator.PrometheusFastApiInstrumentator.__init__
Was def __init__(self, should_group_status_codes: bool = True, should_ignore_untemplated: bool = False, should_group_untemplated: bool = True, should_round_latency_decimals: bool = False, should_respect_env_var: bool = False... pypi.org
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.