From bfca8e25f509ab25432297506a0cce07d68fcc00 Mon Sep 17 00:00:00 2001 From: Andrew Plummer Date: Thu, 21 Dec 2023 16:21:10 +0000 Subject: [PATCH] Fix README example (#15) --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ad1d12..4f75327 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,18 @@ Source: https://github.com/isotoma/datadog-ecs-cdk ## EC2 example ```typescript -import { EcsDatadogDaemonService } from 'datadog-ecs-cdk'; +import { DatadogEcsDaemonService } from 'datadog-ecs-cdk'; // ... -new EcsDatadogDaemonService(this, 'EcsDatadog', { +new DatadogEcsDaemonService(this, 'EcsDatadog', { ecsCluster: myCluster, datadogApiKeySecret: ecs.Secret.fromSecretsManager(mySecret), + // By default, when logs are enabled, collects logs from all containers, + // but not the Datadog agent container itself. + logs: { + enabled: true, + }, }); ```