snakano / cakephp-datadog
CakePHP 2.x Datadog plugin.
Installs: 132
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
README
CakePHP 2.x Datadog plugin.
Installation
Install datadog php tracer extension:
https://docs.datadoghq.com/tracing/languages/php/
Install the plugin using composer:
composer require "snakano/cakephp-datadog:1.0.*"
Usage
Load the plugin:
CakePlugin::load('Datadog');
Add the Dispatcher Filter to the bootstrap.php
file:
Configure::write('Dispatcher.filters', array( 'AssetDispatcher', 'CacheDispatcher', 'Datadog.DatadogFilter' // Add `DatadogFilter` ));
Add the service name to the bootstrap.php
file:
Configure::write('Datadog.serviceName', 'My App Name');