Originally created by: dependabot[bot]
Bumps prometheus-fastapi-instrumentator from 6.1.0 to 7.1.0.
Sourced from prometheus-fastapi-instrumentator's releases.
v7.1.0
Added
- Included metrics closure creators have new optional parameter
custom_labelsto set additional custom static labels. Parameter has not been added to theInstrumentator()constructor. Thanks to@iocentosfor requesting this in #279](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/issues/279">/issues/279) and@martian711in #287](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/287">/issues/287) as well as@Budleein #326](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/326">/issues/326) for implementing it.7.0.2 / 2025-01-14
These release notes also cover 7.0.1 which has been yanked due to incorrect license identifier on PyPI.
7.0.2 / 2025-01-14
Fixed
- Replaced incorrect license identifier in
pyproject.toml. Problem introduced with the migration to Poetry 2.0 in the last patch release.7.0.1 / 2025-01-14
Changed
- Migrated
pyproject.tomlto support PEP 621. This comes with a migration to Poetry 2.0. Thanks to@alextedfor bringing this up in #323](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/323">/issues/323).7.0.0 / 2024-03-13
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
@mvanderleefor proposing this in #280](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/issues/280">/issues/280) and implementing it in #288](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/288">/issues/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, themetrics.default()closure, and themetrics.latency()closure now come with the flagshould_exclude_streaming_duration. The attributemodified_duration_without_streaminghas been added to themetrics.Infoclass. Instances ofmetrics.Infoare passed to instrumentation functions, where the added value can be used to set metrics.Thanks to
@dosuken123for proposing this in #291](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/issues/291">/issues/291) and implementing it in #290](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/290">/issues/290).Relaxed type of
get_route_name()argument toHTTPConnection. This allows developers to use theget_route_namefunction for getting the name of websocket routes as well. Thanks to@pajowufor proposing and implementing this feature in #276](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/276">/issues/276).Removed
- BREAKING: Dropped support for Python 3.7 which is has reached end-of-life.
Sourced from prometheus-fastapi-instrumentator's changelog.
7.1.0 / 2025-03-19
Added
- Included metrics closure creators have new optional parameter
custom_labelsto set additional custom static labels. Parameter has not been added to theInstrumentator()constructor. Thanks to@iocentosfor requesting this in #279](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/issues/279">/issues/279) and@martian711in #287](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/287">/issues/287) as well as@Budleein #326](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/326">/issues/326) for implementing it.7.0.2 / 2025-01-14
Fixed
- Replaced incorrect license identifier in
pyproject.toml. Problem introduced with the migration to Poetry 2.0 in the last patch release.7.0.1 / 2025-01-14
Changed
- Migrated
pyproject.tomlto support PEP 621. This comes with a migration to Poetry 2.0. Thanks to@alextedbringing this up in #323](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/323">/issues/323).7.0.0 / 2023-07-15
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
@mvanderleefor proposing this in #280](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/issues/280">/issues/280) and implementing it in #288](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/pull/288">/issues/288).Middleware also records duration without streaming in addition to the already existing total latency (i.e. the time consumed for streaming is not
... (truncated)
63b05e5 chore: Prepare release v7.1.09dc048b feat: Add opt custom labels to included metrics #279](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/issues/279">/issues/279) (#326](https://github.com/href="https://redirect.github.com/trallnag/prometheus-fastapi-instrumentator/issues/326">/issues/326))2e1568e docs: Fix link in changelogc697909 chore: Prepare release v7.0.22743a4c chore: Fix incorrect license identifier in pyproject.tomld010c8d ci: Bump lower Python to 3.96154e85 ci: Bump Poetry to 2.0.1fc3d516 chore: Fix invalid attributes in pyproject.toml406990a chore: Prepare release v7.0.171cb118 chore: Add note to changelogDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Originally posted by: dependabot[bot]
Labels
The following labels could not be found:
deps,python. Please create them before Dependabot can add them to a pull request.Please fix the above issues or remove invalid values from
dependabot.yml.