wyrihaximus / metrics-tactician
Tactician 的指标收集
1.1.1
2023-01-14 18:48 UTC
Requires
- php: ^8 || ^7.4
- league/tactician: ^1.1.0
- wyrihaximus/metrics: ^2 || ^1.1
Requires (Dev)
- phpbench/phpbench: ^0.17.1
- thecodingmachine/safe: ^1.3.3
- wyrihaximus/test-utilities: ^3.7.4
This package is auto-updated.
Last update: 2024-09-05 07:33:05 UTC
README
安装
要通过 Composer 安装,请使用以下命令,它将自动检测最新版本并将其绑定到 ^
。
composer require wyrihaximus/metrics-tactician
用法
wyrihaximus/metrics
中间件用于 Tactician
。
<?php declare(strict_types=1); use WyriHaximus\Metrics\Factory; use WyriHaximus\Metrics\Label; use WyriHaximus\Metrics\Tactician\CollectorMiddleware; use WyriHaximus\Metrics\Tactician\Metrics; $registry = Factory::create(); $metrics = Metrics::create($registry, new Label('bus', 'name of your command bus')); $collector = new CollectorMiddleware($metrics); // Toss this in the collection of middleware you pass to Tactician
许可证
MIT 许可证 (MIT)
版权所有 (c) 2020 Cees-Jan Kiewiet
特此授予任何获得此软件及其相关文档副本(“软件”)的人,免费使用该软件的权利,不受任何限制,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或出售软件副本的权利,以及允许向软件提供者提供软件的人行使其权利的权利,但需遵守以下条件
上述版权声明和本许可声明应包含在软件的所有副本或主要部分中。
本软件按“原样”提供,不提供任何形式的保证,无论是明示的还是暗示的,包括但不限于适销性、特定用途适用性和非侵权性保证。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他责任负责,无论这些责任是基于合同、侵权或其他法律理论,以及与软件或软件的使用或其他方式相关的任何事件。