mmz-srf/srf-datadog-statsd-bundle
最新稳定版本:v0.1.4
Composer 安装命令:
composer require mmz-srf/srf-datadog-statsd-bundle
包简介
Symfony bundle 'SRFPhpDatadogStatsDBundle' integrates php-datadog-statsd into symfony.
README 文档
README
Description
Symfony bundle SRFDatadogStatsDBundle integrates the datadog StatsD API to Symonfy
Installation
Get the Bundle
Choose your version from packagist.org and add a requirement to your composer.json:
Using the console:
php composer.phar require mmz-srf/srf-datadog-statsd-bundle
Composer will add the dependency to your configuration.
Register the Bundle
Add the bundle in your app/AppKernel.php like this:
public function registerBundles() { $bundles[] = new SRF\Bundles\SRFDatadogStatsDBundle\SRFDatadogStatsDBundle(); }
Update your dependencies
Run php composer.phar update mmz-srf/srf-datadog-statsd-bundle
Clear the caches
Run php app/console cache:clear
Usage
- Log to Monolog:*
$this->container->get('srf.metrics.consumer.monolog')->timing('my.key', 4);
- Log to Datadog StatsD:*
$this->container->get('srf.metrics.consumer.datadog')->timing('my.key', 4);
License
The Bundle is licensed under MIT. For details, see LICENSE.
Maintained by @ymc-pabu
统计信息
- 总下载量: 14.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-22