Skip to content

Update Prometheus client version to ~2.14#7496

Open
PandaLIU-1111 wants to merge 3 commits intohyperf:masterfrom
PandaLIU-1111:适配新版本普罗米修斯

Hidden character warning

The head ref may contain hidden characters: "\u9002\u914d\u65b0\u7248\u672c\u666e\u7f57\u7c73\u4fee\u65af"
Open

Update Prometheus client version to ~2.14#7496
PandaLIU-1111 wants to merge 3 commits intohyperf:masterfrom
PandaLIU-1111:适配新版本普罗米修斯

Conversation

@PandaLIU-1111
Copy link
Member

@PandaLIU-1111 PandaLIU-1111 commented Aug 12, 2025

Update Prometheus client version to ~2.14

@PandaLIU-1111 PandaLIU-1111 requested a review from Copilot August 12, 2025 03:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the Prometheus client library from version ~2.2 to ~2.14 and adds a new updateSummary method to the Redis adapter for Prometheus metrics. The update enables support for newer Prometheus client features and implements summary metric tracking functionality.

  • Updates Prometheus client dependency from version ~2.2.0 to ~2.14
  • Adds updateSummary method to handle summary metric operations in Redis
  • Updates composer dependency requirements in both main and metric package configurations

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
src/metric/src/Adapter/Prometheus/Redis.php Adds new updateSummary method to handle summary metrics with sum, count, and value tracking
src/metric/composer.json Updates Prometheus client version requirement in suggest section
composer.json Updates Prometheus client version constraint in dev dependencies

@hyperf hyperf deleted a comment from Copilot AI Aug 12, 2025
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.

1 participant