Skip to content

Commit

Permalink
fixup! Introduce DD traces & metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Feb 28, 2024
1 parent 0a2068c commit 9bd4dd1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 7 additions & 1 deletion packages/opal-common/opal_common/monitoring/apm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ def process_trace(self, trace: list[Span]) -> Optional[list[Span]]:

return trace

patch(fastapi=True, redis=True, asyncpg=True, aiohttp=True, celery=True)
patch(
fastapi=True,
redis=True,
asyncpg=True,
aiohttp=True,
loguru=True,
)
tracer.configure(
settings={
"FILTERS": [
Expand Down
4 changes: 2 additions & 2 deletions packages/opal-common/requires.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ loguru>=0.6.0,<1
pyjwt[crypto]>=2.4.0,<3
python-decouple>=3.6,<4
tenacity>=8.0.1,<9
datadog >= 0.44.0, <1
ddtrace >= 1.6.4,<2
datadog>=0.44.0, <1
ddtrace>=2,<3
1 change: 0 additions & 1 deletion packages/opal-server/requires.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ permit-broadcaster[postgres,redis,kafka]==0.2.5
gitpython>=3.1.32,<4
pyjwt[crypto]>=2.1.0,<3
websockets>=10.3,<11
ddtrace>=1.1.4,<2
slowapi>=0.1.5,<1
# slowapi is stuck on and old `redis`, so fix that and switch from aioredis to redis
pygit2>=1.13.3,<2
Expand Down

0 comments on commit 9bd4dd1

Please sign in to comment.