Skip to content

Commit

Permalink
feat: Restore Datadog tracing of pymongo (#59)
Browse files Browse the repository at this point in the history
ddtrace 2.7.9 and 2.8.2 were released with a fix for this issue, and we've
since upgraded past these.

See edx/edx-arch-experiments#580
  • Loading branch information
timmc-edx authored Aug 8, 2024
1 parent 1f873ab commit e1c9f6f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion playbooks/roles/edxapp/tasks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@
when: EDXAPP_DATADOG_ENABLE
pip:
name:
- ddtrace
# ddtrace 2.7.9 contains a fix for a pymongo incompatibility.
# (Same fix is present in 2.8.2 on the 2.8.x release line.)
- 'ddtrace>=2.7.9'
extra_args: "--exists-action w {{ item.extra_args|default('') }}"
virtualenv: "{{ edxapp_venv_dir }}"
state: present
Expand Down
2 changes: 0 additions & 2 deletions playbooks/roles/edxapp/templates/edx/app/edxapp/cms.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ 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
# Datadog's instrumentation breaks pymongo: https://github.com/edx/edx-arch-experiments/issues/580
export DD_TRACE_PYMONGO_ENABLED=false

# Temporary: Include span tags representing a variety of tracing HTTP headers.
# This might help us (or DD support) identify an interaction with incoming trace
Expand Down
2 changes: 0 additions & 2 deletions playbooks/roles/edxapp/templates/edx/app/edxapp/lms.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ 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
# Datadog's instrumentation breaks pymongo: https://github.com/edx/edx-arch-experiments/issues/580
export DD_TRACE_PYMONGO_ENABLED=false

# Temporary: Include span tags representing a variety of tracing HTTP headers.
# This might help us (or DD support) identify an interaction with incoming trace
Expand Down
2 changes: 0 additions & 2 deletions playbooks/roles/edxapp/templates/edx/app/edxapp/worker.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export DD_DJANGO_USE_LEGACY_RESOURCE_FORMAT=true
# trace debug logging issue doesn't actually affect edxapp for some
# reason.
export DD_TRACE_LOG_STREAM_HANDLER=false
# Datadog's instrumentation breaks pymongo: https://github.com/edx/edx-arch-experiments/issues/580
export DD_TRACE_PYMONGO_ENABLED=false

# Temporary: Include span tags representing a variety of tracing HTTP headers.
# This might help us (or DD support) identify an interaction with incoming trace
Expand Down

0 comments on commit e1c9f6f

Please sign in to comment.