snakano/cakephp-datadog

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

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

1.0.4 2019-06-04 08:34 UTC

This package is auto-updated.

Last update: 2022-02-01 13:16:21 UTC


README

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