Skip to content

Commit 00fdee0

Browse files
committed
api: source code integration for ddog, disable ddtrace auto
1 parent 16cf152 commit 00fdee0

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

mpcontribs-api/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ ENV DD_SERVICE=contribs-apis \
4545
DD_ENV=prod \
4646
DD_VERSION=$VERSION \
4747
DD_TRACE_HOST=localhost:8126 \
48-
DD_TRACE_OTEL_ENABLED=false
48+
DD_TRACE_OTEL_ENABLED=false \
49+
DD_MAIN_PACKAGE=mpcontribs-api
4950

5051
LABEL com.datadoghq.ad.logs='[{"source": "gunicorn", "service": "contribs-apis"}]'
5152
EXPOSE 10000 10002 10003 10005 20000

mpcontribs-api/gunicorn.conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import ddtrace.auto # noqa: F401
1+
# import ddtrace.auto # noqa: F401
2+
# from ddtrace import patch
23
import os
34

5+
# patch(pymongo=False)
46
bind = "0.0.0.0:{}".format(os.getenv("API_PORT"))
57
worker_class = "gevent"
68
workers = os.getenv("NWORKERS")

mpcontribs-api/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# -*- coding: utf-8 -*-
2+
import ddtrace.sourcecode.setuptools_auto # noqa: F401
23
import datetime
34
from setuptools import setup
45

0 commit comments

Comments
 (0)