Skip to content

chore(deps): update dependency prometheus_fastapi_instrumentator to v8 - #41

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/prometheus_fastapi_instrumentator-8.x
Open

chore(deps): update dependency prometheus_fastapi_instrumentator to v8#41
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/prometheus_fastapi_instrumentator-8.x

Conversation

@renovate

@renovate renovate Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
prometheus_fastapi_instrumentator ==6.1==8.1.0 age confidence

Release Notes

trallnag/prometheus-fastapi-instrumentator (prometheus_fastapi_instrumentator)

v8.1.0

Compare Source

Added
  • Added new optional parameter should_include_root_path to the
    Instrumentator constructor. When set to True, the default exported
    Prometheus metrics will include the FastAPI app's effective root_path in the
    handler label. Defaults to False to maintain backwards compatibility.
    Requested in
    #​390
    and implemented in
    #​391.
Fixed
  • Fixed resolving route names with root path set in FastAPI app. Raised in
    #​387
    and implemented in
    #​391.
  • Fixed incorrect handling of nested apps / routes in some corner cases
    introduced with 8.0.1. Raised in
    #​389
    and implemented in
    #​391.

v8.0.2

Compare Source

Fixed
  • Replaced deprecated asyncio.iscoroutinefunction() with
    inspect.iscoroutinefunction() in Instrumentator.add() to avoid warnings on
    Python 3.12+ in
    #​378.

v8.0.1

Compare Source

Fixed
  • Fixed resolving route names for routers registered via include_router() on
    FastAPI 0.116+ leading to AttributeError getting raised on every request.
    The internal route name resolution now also handles _IncludedRouter and
    recurses into the included router's own routes so the Prometheus label
    reflects the leaf endpoint. Thanks to
    @​adeebmirza in
    #​371
    for fixing it.
  • Fixed hitting mounts with slash redirection collecting wrong handler name.
    Thanks to @​lbonn for raising and fixing this issue
    in
    #​369.

v8.0.0

Compare Source

Changed
  • BREAKING: Ported project to Starlette v1. This includes new required minimum
    versions of Python, Starlette, and FastAPI.
    Bumped starlette dependency
    from >=0.30.0,<1.0.0 to >=1.0.0,<2.0.0. Bumped requires-python from
    >=3.8 to >=3.10 (starlette dropped support). Bumped fastapi dev
    dependency to ^0.133.0 (first version supporting starlette v1). Adjusted
    middleware app parameter type from Starlette to ASGIApp. Thanks to
    @​bgermann in
    #​357
    for implementing it.
Fixed
  • Corrected documentation for setting custom labels. Thanks to
    @​rickie95 in
    #​342
    for implementing it.

v7.1.0

Compare Source

Added
  • Included metrics closure creators have new optional parameter custom_labels
    to set additional custom static labels. Parameter has not been added to the
    Instrumentator() constructor. Thanks to
    @​iocentos for requesting this in
    #​279
    and @​martian711 in
    #​287
    as well as @​Budlee in
    #​326
    for implementing it.

v7.0.2

Compare Source

Fixed
  • Replaced incorrect license identifier in pyproject.toml. Problem
    introduced with the migration to Poetry 2.0 in the last patch release.

v7.0.1

Compare Source

Changed
  • Migrated pyproject.toml to support PEP 621. This comes with a migration
    to Poetry 2.0. Thanks to @​alexted bringing this
    up in
    #​323.

v7.0.0

Compare Source

Major release with a single breaking change: Python 3.7 is not supported
anymore. Beyond that, three improvements based on various pull requests.

Added
  • Instrumentator now works without FastAPI. This is possible because every
    FastAPI app is also a Starlette app (but not the other way around). Or to be
    more specific: FastAPI uses Starlette for things like routing and middleware
    this package relies on. The change is backwards compatible, even type checkers
    like mypy should continue working. Thanks to
    @​mvanderlee for proposing this in
    #​280
    and implementing it in
    #​288.

  • Middleware also records duration without streaming in addition to the
    already existing total latency (i.e. the time consumed for streaming is not
    included in the duration value). The differentiation can be valuable as it
    shows the time to first byte.

    This mode is opt-in and can be enabled / used in several ways: The
    Instrumentator() constructor, the metrics.default() closure, and the
    metrics.latency() closure now come with the flag
    should_exclude_streaming_duration. The attribute
    modified_duration_without_streaming has been added to the metrics.Info
    class. Instances of metrics.Info are passed to instrumentation functions,
    where the added value can be used to set metrics.

    Thanks to @​dosuken123 for proposing this in
    #​291
    and implementing it in
    #​290.

  • Relaxed type of get_route_name argument to HTTPConnection. This allows
    developers to use the get_route_name function for getting the name of
    websocket routes as well. Thanks to @​pajowu for
    proposing and implementing this feature in
    #​276.

Removed
  • BREAKING: Dropped support for Python 3.7 which is has reached end-of-life.

Configuration

📅 Schedule: (UTC)

  • 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 PR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/prometheus_fastapi_instrumentator-8.x branch 2 times, most recently from 77dbf9b to 94d2085 Compare June 23, 2026 11:05
@renovate
renovate Bot force-pushed the renovate/prometheus_fastapi_instrumentator-8.x branch from 94d2085 to f6031b7 Compare July 26, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants