• E egoroff-spb-ru
  • Информация о проекте
    • Информация о проекте
    • Активность
    • Метки
    • Участники
  • Репозиторий
    • Репозиторий
    • Файлы
    • Коммиты
    • Ветки
    • Теги
    • Участники
    • Диаграмма
    • Сравнение
  • Задачи 0
    • Задачи 0
    • Список
    • Доски
    • Спринты
  • Запросы на слияние 0
    • Запросы на слияние 0
  • CI/CD
    • CI/CD
    • Конвейеры
    • Задания
    • Расписания
  • Развертывания
    • Развертывания
    • Окружения
    • Релизы
  • Пакеты и реестры
    • Пакеты и реестры
    • Реестр пакетов
    • Реестр контейнеров
  • Мониторинг
    • Мониторинг
    • Инциденты
  • Аналитика
    • Аналитика
    • Поток ценности
    • CI/CD
    • Репозиторий
  • Wiki
    • Wiki
  • Сниппеты
    • Сниппеты
  • Активность
  • Диаграмма
  • Создать новую задачу
  • Задания
  • Коммиты
  • Доски с задачами
Свернуть панель
  • egoroff
  • egoroff-spb-ru
  • Запросы на слияние
  • !434

chore(deps): update axum-prometheus requirement from 0.2.0 to 0.3.0 in /egoroff

  • Ревью изменений

  • Скачать
  • Почтовые патчи
  • Простое отличие
Слиты egoroff запросил слияние dependabot/cargo/egoroff/axum-prometheus-0.3.0 в master Янв 05, 2023
  • Обзор 0
  • Коммиты 1
  • Конвейеры 0
  • Изменения 1

Created by: dependabot[bot]

Updates the requirements on axum-prometheus to permit the latest version.

Release notes

Sourced from axum-prometheus's releases.

0.3.0

  • Routing patterns can be ignored, and grouped together when reporting to Prometheus. Added PrometheusMetricLayerBuilder to easily customize these. #5
  • Endpoint label behavior can be altered with the new EndpointLabel enum. #8
  • The metric names can be changed by setting some environmental variables at compile time. #6 (Thanks @​dylanwh.)
Changelog

Sourced from axum-prometheus's changelog.

0.3.0 - 2023-01-04

Added

  • Routing patterns can be ignored, and grouped together when reporting to Prometheus.

  • Endpoint label behavior can be altered with the new EndpointLabel enum.

  • Added a new builder PrometheusMetricLayerBuilder to easily customize these.

    let (prometheus_layer, metric_handle) = PrometheusMetricLayerBuilder::new()
        // ignore reporting requests that match "/foo" or "/sensitive"
        .with_ignore_patterns(&["/foo", "/sensitive"])
        // if the any of the second argument matches, report them at the `/bar` endpoint
        .with_group_patterns_as("/bar", &["/foo/:bar", "/foo/:bar/:baz"])
        // use `axum::extract::MatchedPath`, and if that fails, use the exact requested URI
        .with_endpoint_label_type(EndpointLabel::MatchedPath)
        .with_default_metrics()
        .build_pair();
  • A builder-example and an endpoint-type-example.

  • The metric names can be changed by setting some environmental variables at compile time. It is best to set these in the config.toml (note this is not the same file as Cargo.toml):

    [env]
    AXUM_HTTP_REQUESTS_TOTAL = "my_app_requests_total"
    AXUM_HTTP_REQUESTS_DURATION_SECONDS = "my_app_requests_duration_seconds"
    AXUM_HTTP_REQUESTS_PENDING = "my_app_requests_pending"

0.2.0 - 2022-10-25

Added

  • Compatibility with axum-core = "0.3" and thus axum = "0.6".

0.1.0

First version.

Commits
  • 16f3643 fix: increase version
  • af3e7c7 Merge pull request #9 from Ptrskay3/release/0.3
  • 3671e63 release/0.3
  • 9f518d1 Merge pull request #8 from Ptrskay3/endpoint-types
  • 7f29dfb add changelog
  • 86d92c8 add option to customize endpoint reporting
  • f6f3cfb Fix typo
  • b2e2c77 Merge pull request #6 from dylanwh/master
  • a24e7b3 update doc strings for constants, with breadcrumb to the envs
  • 104bbf6 mention metric name envs in the changelog
  • Additional commits viewable in compare view

Dependabot 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.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Ответственный
Назначить
Проверяющие
Запросить ревью
Оценка трудозатрат
Исходная ветка: dependabot/cargo/egoroff/axum-prometheus-0.3.0