From 24e4efbf3ab61501bd82f37c179e0a6d243fb2df Mon Sep 17 00:00:00 2001 From: Hadrien Patte Date: Fri, 6 Sep 2024 01:55:11 +0200 Subject: [PATCH] Enable APM auto-instrumentation --- roles/mediaserver/files/daemon.json | 6 ++++++ roles/mediaserver/tasks/datadog.yml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/roles/mediaserver/files/daemon.json b/roles/mediaserver/files/daemon.json index 5bb1daa..472e1ed 100644 --- a/roles/mediaserver/files/daemon.json +++ b/roles/mediaserver/files/daemon.json @@ -4,5 +4,11 @@ "max-size": "2m", "max-file": "1", "compress": "false" + }, + "default-runtime": "dd-shim", + "runtimes": { + "dd-shim": { + "path": "/opt/datadog-packages/datadog-apm-inject/stable/inject/auto_inject_runc" + } } } diff --git a/roles/mediaserver/tasks/datadog.yml b/roles/mediaserver/tasks/datadog.yml index 7c25cca..3d5af10 100644 --- a/roles/mediaserver/tasks/datadog.yml +++ b/roles/mediaserver/tasks/datadog.yml @@ -11,6 +11,9 @@ - docker - systemd-journal - dialout + datadog_apm_instrumentation_enabled: all + datadog_apm_instrumentation_libraries: + - dotnet datadog_config: env: "{{ default.env }}" logs_enabled: true