Skip to content

Commit 74fa95f

Browse files
authored
update dd-trace to 5.9.0 and enable more features (#125)
1 parent 121636b commit 74fa95f

File tree

11 files changed

+2379
-2136
lines changed

11 files changed

+2379
-2136
lines changed

.gitignore

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

2-
# Created by https://www.gitignore.io/api/macos,linux,windows
3-
# Edit at https://www.gitignore.io/?templates=macos,linux,windows
2+
# Created by https://www.gitignore.io/api/macos,linux,windows,dotenv
3+
# Edit at https://www.gitignore.io/?templates=macos,linux,windows,dotenv
4+
5+
### dotenv ###
6+
.env
47

58
### Linux ###
69
*~

javascript/node/microservices/api-gateway/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:8-alpine
1+
FROM node:18-alpine
22

33
RUN apk add --no-cache tini
44

javascript/node/microservices/api-gateway/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dependencies": {
77
"axios": "^0.18.0",
88
"cors": "^2.8.5",
9-
"dd-trace": "^0.15.5",
9+
"dd-trace": "^5.9.0",
1010
"express": "^4.16.2",
1111
"express-winston": "^3.0.1",
1212
"winston": "^3.2.1"

javascript/node/microservices/api-gateway/yarn.lock

+769-708
Large diffs are not rendered by default.

javascript/node/microservices/auth/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:8-alpine
1+
FROM node:18-alpine
22

33
RUN apk add --no-cache tini git
44

javascript/node/microservices/auth/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "server.js",
55
"private": true,
66
"dependencies": {
7-
"dd-trace": "^0.15.5",
7+
"dd-trace": "^5.9.0",
88
"express": "^4.16.2",
99
"express-winston": "^3.1.0",
1010
"redis": "^2.8.0",

javascript/node/microservices/auth/yarn.lock

+759-698
Large diffs are not rendered by default.

javascript/node/microservices/docker-compose.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ services:
66
- DD_ENV
77
- DD_TRACE_DEBUG
88
- DD_TRACE_ENABLED
9+
- DD_TRACING_ENABLED=true
10+
- DD_RUNTIME_METRICS_ENABLED=true
11+
- DD_PROFILING_ENABLED=true
912
- DD_LOGS_INJECTION=true
1013
- DD_AGENT_HOST=agent
1114
volumes:
@@ -20,6 +23,9 @@ services:
2023
- DD_ENV
2124
- DD_TRACE_DEBUG
2225
- DD_TRACE_ENABLED
26+
- DD_TRACING_ENABLED=true
27+
- DD_RUNTIME_METRICS_ENABLED=true
28+
- DD_PROFILING_ENABLED=true
2329
- DD_LOGS_INJECTION=true
2430
- DD_AGENT_HOST=agent
2531
labels:
@@ -30,12 +36,15 @@ services:
3036
- DD_ENV
3137
- DD_TRACE_DEBUG
3238
- DD_TRACE_ENABLED
39+
- DD_TRACING_ENABLED=true
40+
- DD_RUNTIME_METRICS_ENABLED=true
41+
- DD_PROFILING_ENABLED=true
3342
- DD_LOGS_INJECTION=true
3443
- DD_AGENT_HOST=agent
3544
labels:
3645
com.datadoghq.ad.logs: '[{"source": "docker", "service": "user"}]'
3746
agent:
38-
image: datadog/agent:6.14.1
47+
image: datadog/agent:7.52.0
3948
environment:
4049
- DD_ENV
4150
- DD_TAGS="env:${DD_ENV}"
@@ -46,7 +55,9 @@ services:
4655
- DD_APM_ANALYZED_SPANS=api-gateway|express.request=1,auth|express.request=1,user|express.request=1
4756
- DD_BIND_HOST=0.0.0.0
4857
- DD_LOGS_ENABLED=true
58+
- DD_REMOTE_CONFIGURATION_ENABLED=true
4959
- DD_API_KEY
60+
- DD_SITE
5061
- DD_DD_URL
5162
- DD_APM_DD_URL
5263
volumes:

javascript/node/microservices/user/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:8-alpine
1+
FROM node:18-alpine
22

33
RUN apk add --no-cache tini git
44

javascript/node/microservices/user/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"main": "server.js",
55
"private": true,
66
"dependencies": {
7-
"dd-trace": "^0.15.5",
7+
"dd-trace": "^5.9.0",
88
"express": "^4.16.2",
99
"express-graphql": "^0.7.1",
1010
"express-winston": "^3.1.0",

0 commit comments

Comments
 (0)