Requires:
- Datadog agent installed (https://docs.datadoghq.com/agent/)
- dd-trace-php extention (https://docs.datadoghq.com/tracing/setup/php)
"ingelby/yii2-datadog": "^0.*"
{
"type": "vcs",
"url": "git@github.com:ingelby/yii2-datadog.git"
}
Add to log component
[
'class' => DataDogTarget::class,
'levels' => ['info', 'warning', 'error'],
'dataDogApiKey' => 'DD_API_KEY',
'hostname' => gethostname(),
'environment' => 'ENV_NAME',
'service' => 'SERVICE_NAME',
]