Skip to content

Commit

Permalink
docs: Update comment for suppressing Datadog middleware spans in edxapp
Browse files Browse the repository at this point in the history
It's now documented on the wiki as an option IDA owners may want.
  • Loading branch information
timmc-edx committed Dec 11, 2024
1 parent 500ad68 commit abb4e91
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions playbooks/roles/edxapp/templates/edx/app/edxapp/cms.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ export DD_LOGS_INJECTION=true
# reason.
export DD_TRACE_LOG_STREAM_HANDLER=false

# Temporary: We currently have a span (or several) for each Django middleware,
# and Datadog Support has implied that it will be easier to debug our tracing
# issues if we don't record those middleware. (They make up the bulk of traces,
# at least visually.)
# See https://github.com/edx/edx-arch-experiments/issues/692
# Suppress middleware spans because there are about 100 for each request.
# Remove (or set to true) for debugging.
export DD_DJANGO_INSTRUMENT_MIDDLEWARE=false
{% endif -%}

Expand Down
7 changes: 2 additions & 5 deletions playbooks/roles/edxapp/templates/edx/app/edxapp/lms.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ export DD_LOGS_INJECTION=true
# reason.
export DD_TRACE_LOG_STREAM_HANDLER=false

# Temporary: We currently have a span (or several) for each Django middleware,
# and Datadog Support has implied that it will be easier to debug our tracing
# issues if we don't record those middleware. (They make up the bulk of traces,
# at least visually.)
# See https://github.com/edx/edx-arch-experiments/issues/692
# Suppress middleware spans because there are about 100 for each request.
# Remove (or set to true) for debugging.
export DD_DJANGO_INSTRUMENT_MIDDLEWARE=false

{% endif -%}
Expand Down
7 changes: 2 additions & 5 deletions playbooks/roles/edxapp/templates/edx/app/edxapp/worker.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ export DD_LOGS_INJECTION=true
# reason.
export DD_TRACE_LOG_STREAM_HANDLER=false

# Temporary: We currently have a span (or several) for each Django middleware,
# and Datadog Support has implied that it will be easier to debug our tracing
# issues if we don't record those middleware. (They make up the bulk of traces,
# at least visually.)
# See https://github.com/edx/edx-arch-experiments/issues/692
# Suppress middleware spans because there are about 100 for each request.
# Remove (or set to true) for debugging.
export DD_DJANGO_INSTRUMENT_MIDDLEWARE=false
{% endif -%}

Expand Down

0 comments on commit abb4e91

Please sign in to comment.