Yii2 Datadog Component

Requires:

Installation

"ingelby/yii2-datadog": "^0.*"
    {
      "type": "vcs",
      "url": "git@github.com:ingelby/yii2-datadog.git"
    }

Usage

Logging

Add to log component

[
    'class'         => DataDogTarget::class,
    'levels'        => ['info', 'warning', 'error'],
    'dataDogApiKey' => 'DD_API_KEY',
    'hostname'      => gethostname(),
    'environment'   => 'ENV_NAME',
    'service'       => 'SERVICE_NAME',
]