hyperf / hyperf/metric

使用 Redis 存储指标时报错

Open
#16 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
6
Forks
15
PR merge metrics
No merged PRs in 30d

Description

在config/autoload/dependencies.php 中更换为 Redis 存储:
```
return [
Prometheus\Storage\Adapter::class => Hyperf\Metric\Adapter\Prometheus\RedisStorageFactory::class,
];
```
启动框架报错:
`PHP Fatal error: Class Hyperf\Metric\Adapter\Prometheus\Redis contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Prometheus\Storage\Adapter::updateSummary) in /srv/hyperf/vendor/hyperf/metric/src/Adapter/Prometheus/Redis.php on line 24`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.