PHP code example of mmz-srf / srf-datadog-statsd-bundle
1. Go to this page and download the library: Download mmz-srf/srf-datadog-statsd-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mmz-srf / srf-datadog-statsd-bundle example snippets
public function registerBundles()
{
$bundles[] = new SRF\Bundles\SRFDatadogStatsDBundle\SRFDatadogStatsDBundle();
}
composer.phar update mmz-srf/srf-datadog-statsd-bundle
app/console cache:clear
$this->container->get('srf.metrics.consumer.monolog')->timing('my.key', 4);
$this->container->get('srf.metrics.consumer.datadog')->timing('my.key', 4);
app/AppKernel.php