Skip to content

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

@JentXiezzz

Description

@JentXiezzz

在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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions