Skip to content

SNakano/cakephp-datadog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP Datadog

Latest Stable Version Total Downloads License

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');