From 4ddbe9998a4968cedb0b4fad147a8c18348ca06f Mon Sep 17 00:00:00 2001 From: Syed Imran Hassan <45480841+syedimranhassan@users.noreply.github.com> Date: Fri, 31 May 2024 16:51:37 +0500 Subject: [PATCH] chore: Enable APM profiling and data streaming for ecomworker and insights --- .../ecomworker/templates/edx/app/ecomworker/ecomworker.sh.j2 | 2 ++ .../roles/insights/templates/edx/app/insights/insights.sh.j2 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/playbooks/roles/ecomworker/templates/edx/app/ecomworker/ecomworker.sh.j2 b/playbooks/roles/ecomworker/templates/edx/app/ecomworker/ecomworker.sh.j2 index ddd621424e7..fdb1f55762b 100644 --- a/playbooks/roles/ecomworker/templates/edx/app/ecomworker/ecomworker.sh.j2 +++ b/playbooks/roles/ecomworker/templates/edx/app/ecomworker/ecomworker.sh.j2 @@ -22,6 +22,8 @@ export DD_DJANGO_USE_HANDLER_RESOURCE_FORMAT=true # trace debug logging issue doesn't actually affect edxapp for some # reason. export DD_TRACE_LOG_STREAM_HANDLER=false +export DD_PROFILING_ENABLED=true +export DD_DATA_STREAMS_ENABLED=true {% endif -%} source {{ ecommerce_worker_home }}/{{ ecommerce_worker_service_name }}_env diff --git a/playbooks/roles/insights/templates/edx/app/insights/insights.sh.j2 b/playbooks/roles/insights/templates/edx/app/insights/insights.sh.j2 index 5734c9b7160..fd53fad59d8 100644 --- a/playbooks/roles/insights/templates/edx/app/insights/insights.sh.j2 +++ b/playbooks/roles/insights/templates/edx/app/insights/insights.sh.j2 @@ -22,6 +22,8 @@ export DD_DJANGO_USE_HANDLER_RESOURCE_FORMAT=true # trace debug logging issue doesn't actually affect edxapp for some # reason. export DD_TRACE_LOG_STREAM_HANDLER=false +export DD_PROFILING_ENABLED=true +export DD_DATA_STREAMS_ENABLED=true {% endif -%} source {{ insights_app_dir }}/insights_env