Skip to content

Commit

Permalink
fix: Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tim McCormack <[email protected]>
  • Loading branch information
christopappas and timmc-edx authored May 22, 2024
1 parent 5bde1ec commit 58aa8c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions playbooks/roles/edx_django_service/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,7 @@
- install:app-requirements

- name: "Install Datadog APM requirements"
when: >
COMMON_ENABLE_DATADOG and
(COMMON_ENABLE_DATADOG_APP or edx_django_service_datadog_enable)
when: edx_django_service_datadog_enable
pip:
name:
- ddtrace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi
export NEW_RELIC_LICENSE_KEY="{{ NEWRELIC_LICENSE_KEY }}"
{% endif -%}

{% if COMMON_ENABLE_DATADOG and (COMMON_ENABLE_DATADOG_APP or edx_django_service_datadog_enable) %}
{% if edx_django_service_datadog_enable %}
{% set executable = edx_django_service_venv_bin + '/ddtrace-run ' + executable %}
export DD_TAGS="service:{{ edx_django_datadog_service }}"
export DD_DJANGO_USE_HANDLER_RESOURCE_FORMAT=true
Expand Down

0 comments on commit 58aa8c5

Please sign in to comment.