hyperf / metric

[READ ONLY]
MIT License
6 stars 10 forks source link

使用 Redis 存储指标时报错 #16

Open JentXiezzz opened 4 months ago

JentXiezzz commented 4 months ago

在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