chore(deps): update dependency prometheus_fastapi_instrumentator to v7 #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==6.1
->==7.0.2
Release Notes
trallnag/prometheus-fastapi-instrumentator (prometheus_fastapi_instrumentator)
v7.0.2
Compare Source
Fixed
pyproject.toml
. Problemintroduced with the migration to Poetry 2.0 in the last patch release.
v7.0.1
Compare Source
Changed
pyproject.toml
to support PEP 621. This comes with a migrationto 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, themetrics.default()
closure, and themetrics.latency()
closure now come with the flagshould_exclude_streaming_duration
. The attributemodified_duration_without_streaming
has been added to themetrics.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 toHTTPConnection
. This allowsdevelopers to use the
get_route_name
function for getting the name ofwebsocket routes as well. Thanks to @pajowu for
proposing and implementing this feature in
#276.
Removed
Configuration
📅 Schedule: 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.
This PR was generated by Mend Renovate. View the repository job log.