Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.03 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.03 KB

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