mmz-srf/srf-datadog-statsd-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Symfony bundle 'SRFPhpDatadogStatsDBundle' integrates php-datadog-statsd into symfony.

Installs: 13 767

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 25

Forks: 0

Open Issues: 0

Type:symfony-bundle

v0.1.4 2015-09-28 08:19 UTC

This package is not auto-updated.

Last update: 2023-07-22 11:35:13 UTC


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