miracum / ahd2fhir

A REST service for mapping text analysis results from Averbis Health Discovery to FHIR resources.
Apache License 2.0
8 stars 0 forks source link

chore(deps): update dependency prometheus-fastapi-instrumentator to v7 #161

Closed renovate[bot] closed 8 months ago

renovate[bot] commented 8 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
prometheus-fastapi-instrumentator ==6.1.0 -> ==7.0.0 age adoption passing confidence

Release Notes

trallnag/prometheus-fastapi-instrumentator (prometheus-fastapi-instrumentator) ### [`v7.0.0`](https://togithub.com/trallnag/prometheus-fastapi-instrumentator/blob/HEAD/CHANGELOG.md#700--2023-07-15) [Compare Source](https://togithub.com/trallnag/prometheus-fastapi-instrumentator/compare/v6.1.0...v7.0.0) 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](https://togithub.com/mvanderlee) for proposing this in [#​280](https://togithub.com/trallnag/prometheus-fastapi-instrumentator/issues/280) and implementing it in [#​288](https://togithub.com/trallnag/prometheus-fastapi-instrumentator/pull/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](https://togithub.com/dosuken123) for proposing this in [#​291](https://togithub.com/trallnag/prometheus-fastapi-instrumentator/issues/291) and implementing it in [#​290](https://togithub.com/trallnag/prometheus-fastapi-instrumentator/pull/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](https://togithub.com/pajowu) for proposing and implementing this feature in [#​276](https://togithub.com/trallnag/prometheus-fastapi-instrumentator/pull/276). ##### Removed - **BREAKING:** Dropped support for Python 3.7 which is has reached end-of-life.

Configuration

πŸ“… Schedule: Branch creation - "every 3 months on the first day of the month" (UTC), 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 these updates again.



This PR has been generated by Mend Renovate. View repository job log here.

github-actions[bot] commented 8 months ago

πŸ¦™ MegaLinter status: βœ… SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
βœ… ACTION actionlint 5 0 0.09s
βœ… BASH bash-exec 2 0 0.03s
βœ… BASH shellcheck 2 0 0.03s
βœ… BASH shfmt 2 0 0.0s
βœ… DOCKERFILE hadolint 2 0 0.17s
βœ… JSON eslint-plugin-jsonc 17 0 2.73s
βœ… JSON jsonlint 17 0 0.63s
βœ… JSON npm-package-json-lint yes no 0.65s
βœ… JSON prettier 17 0 2.1s
βœ… MARKDOWN markdownlint 3 0 0.68s
βœ… PYTHON bandit 31 0 1.74s
βœ… PYTHON black 31 0 2.05s
βœ… PYTHON flake8 31 0 1.03s
βœ… PYTHON isort 31 0 0.48s
βœ… PYTHON mypy 31 0 11.26s
βœ… PYTHON pyright 31 0 11.33s
βœ… PYTHON ruff 31 0 0.07s
βœ… REPOSITORY checkov yes no 17.14s
βœ… REPOSITORY gitleaks yes no 0.09s
βœ… REPOSITORY git_diff yes no 0.01s
βœ… REPOSITORY grype yes no 14.81s
βœ… REPOSITORY kics yes no 37.68s
βœ… REPOSITORY secretlint yes no 1.12s
βœ… REPOSITORY syft yes no 0.5s
βœ… REPOSITORY trivy yes no 10.19s
βœ… REPOSITORY trivy-sbom yes no 5.44s
βœ… REPOSITORY trufflehog yes no 10.07s
βœ… YAML prettier 15 0 1.18s
βœ… YAML yamllint 15 0 0.74s

See detailed report in MegaLinter reports

You could have same capabilities but better runtime performances if you request a new MegaLinter flavor.

_MegaLinter is graciously provided by OX Security_

miracum-bot commented 7 months ago

:tada: This PR is included in version 3.1.6 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: