---
title: "prometheus-fastapi-instrumentator 8.0.0 Breaking Changes"
description: "What each prometheus-fastapi-instrumentator release removed, renamed or changed: 25 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/prometheus-fastapi-instrumentator
last_updated: 2026-12-04
---

# 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

Latest version `8.1.0`, released July 26, 2026. [Source repository](https://github.com/trallnag/prometheus-fastapi-instrumentator)

Its 8.0.0 release requires [Python 3.10](https://since.dev/calendar/python/3.10.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [7.0.0](#v-7-0-0) to [8.0.0](#v-8-0-0): 5 breaking changes in 1 version.
- From [6.0.0](#v-6-0-0) to [8.0.0](#v-8-0-0): 19 breaking changes in 2 versions.

## prometheus-fastapi-instrumentator 8.0.0 breaking changes

prometheus-fastapi-instrumentator 8.0.0, released May 29, 2026: 5 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](https://github.com/trallnag/prometheus-fastapi-instrumentator/releases/tag/v8.0.0)
- **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](https://github.com/trallnag/prometheus-fastapi-instrumentator/releases/tag/v8.0.0)
- **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](https://github.com/trallnag/prometheus-fastapi-instrumentator/releases/tag/v8.0.0)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/8.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/8.0.0/)

## prometheus-fastapi-instrumentator 7.0.0 breaking changes

prometheus-fastapi-instrumentator 7.0.0, released March 13, 2024: 14 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](https://github.com/trallnag/prometheus-fastapi-instrumentator/releases/tag/v7.0.0)
- **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](https://github.com/trallnag/prometheus-fastapi-instrumentator/commit/dc4a39f4f842b2f0744e1f0d11612bf5149a831a)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/7.0.0/)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## prometheus-fastapi-instrumentator 6.0.0 breaking changes

prometheus-fastapi-instrumentator 6.0.0, released March 20, 2023: 6 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](https://github.com/trallnag/prometheus-fastapi-instrumentator/releases/tag/v6.0.0)
- **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](https://github.com/trallnag/prometheus-fastapi-instrumentator/releases/tag/v6.0.0)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/6.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/6.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/6.0.0/)
- **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](https://pypi.org/project/prometheus-fastapi-instrumentator/6.0.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
