Skip to content

Commit ea6c183

Browse files
committed
re-enable ddtrace
1 parent a1dd1e7 commit ea6c183

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

mpcontribs-portal/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"django.contrib.sessions",
1818
"django.contrib.staticfiles",
1919
"django_extensions",
20-
"ddtrace.contrib.django",
2120
"webpack_loader",
2221
"mpcontribs.portal",
2322
]

mpcontribs-portal/start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ python manage.py migrate --noinput
1818

1919
CMD="gunicorn wsgi"
2020

21-
#if [[ -n "$DD_TRACE_HOST" ]]; then
22-
# wait-for-it.sh "$DD_TRACE_HOST" -q -s -t 10 && CMD="ddtrace-run $CMD"
23-
#fi
21+
if [[ -n "$DD_TRACE_HOST" ]]; then
22+
wait-for-it.sh "$DD_TRACE_HOST" -q -s -t 10 && CMD="ddtrace-run $CMD" || echo "WARNING: datadog agent unreachable"
23+
fi
2424

25-
exec wait-for-it.sh $MPCONTRIBS_API_HOST -q -s -t 60 -- $CMD
25+
exec wait-for-it.sh "$MPCONTRIBS_API_HOST" -q -s -t 60 -- $CMD

mpcontribs-portal/wsgi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: utf-8 -*-
22
import re
33
import os
4+
import ddtrace.auto
45
import django_settings_file
56
from django.core.wsgi import get_wsgi_application
67
from whitenoise import WhiteNoise

0 commit comments

Comments
 (0)