Skip to content

Commit

Permalink
feature: add datadog logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Lees committed Feb 18, 2025
1 parent e409456 commit b0f5e47
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 76 deletions.
4 changes: 2 additions & 2 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
web: python manage.py collectstatic --noinput && python manage.py migrate --noinput && gunicorn config.wsgi --bind 0.0.0.0:$PORT
app: python manage.py migrate --noinput && gunicorn config.wsgi --bind 0.0.0.0:$PORT
web: python manage.py collectstatic --noinput && python manage.py migrate --noinput && ddtrace-run gunicorn config.wsgi --bind 0.0.0.0:$PORT
app: python manage.py migrate --noinput && ddtrace-run gunicorn config.wsgi --bind 0.0.0.0:$PORT
celery_worker: celery -A config worker -l DEBUG
celery_beat: celery -A config beat -l info -S django
1 change: 1 addition & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
'wagtailfontawesomesvg',
'wagtail_localize',
'wagtail_localize.locales',
'ddtrace.contrib.django',
]

MIDDLEWARE = [
Expand Down
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ pydantic-settings==2.3.1
certifi==2024.7.4
python-bidi==0.4.2
elasticsearch==7.13.4
ddtrace==2.21.0
13 changes: 13 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ botocore==1.27.96
# via
# boto3
# s3transfer
bytecode==0.16.1
# via ddtrace
celery[redis]==5.3.6
# via
# -r requirements.in
Expand Down Expand Up @@ -101,6 +103,8 @@ dateparser==0.7.2
# via -r requirements.in
dbt-copilot-python==0.2.1
# via -r requirements.in
ddtrace==2.21.0
# via -r requirements.in
defusedxml==0.7.1
# via willow
deprecated==1.2.15
Expand Down Expand Up @@ -231,6 +235,8 @@ elastic-apm==6.1.3
# via -r requirements.in
elasticsearch==7.13.4
# via -r requirements.in
envier==0.6.1
# via ddtrace
et-xmlfile==2.0.0
# via openpyxl
events==0.5
Expand Down Expand Up @@ -335,6 +341,7 @@ opensearch-py==2.6.0
# opensearch-dsl
opentelemetry-api==1.22.0
# via
# ddtrace
# opentelemetry-distro
# opentelemetry-exporter-otlp-proto-grpc
# opentelemetry-exporter-otlp-proto-http
Expand Down Expand Up @@ -409,6 +416,7 @@ prompt-toolkit==3.0.48
# via click-repl
protobuf==4.25.5
# via
# ddtrace
# googleapis-common-protos
# opentelemetry-proto
psycopg2==2.9.9
Expand Down Expand Up @@ -558,6 +566,8 @@ tomli==2.2.1
typing-extensions==4.12.2
# via
# asgiref
# bytecode
# ddtrace
# dj-database-url
# faker
# kombu
Expand Down Expand Up @@ -641,10 +651,13 @@ willow[heif]==1.6.3
# willow
wrapt==1.17.0
# via
# ddtrace
# deprecated
# opentelemetry-instrumentation
xhtml2pdf==0.2.15
# via -r requirements.in
xmltodict==0.14.2
# via ddtrace
zipp==3.21.0
# via importlib-metadata

Expand Down
Loading

0 comments on commit b0f5e47

Please sign in to comment.