Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency prometheus_fastapi_instrumentator to v7 #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 21, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prometheus_fastapi_instrumentator ==6.1 -> ==7.0.2 age adoption passing confidence

Release Notes

trallnag/prometheus-fastapi-instrumentator (prometheus_fastapi_instrumentator)

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: 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-7.x branch from ead8d7d to 6fc12c1 Compare January 14, 2025 23:41
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