Skip to content

Commit 01ba634

Browse files
committed
fix: datadog tracer 설정 추가
1 parent 74f163b commit 01ba634

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

terraform/dev/locals.tf

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,23 @@ locals {
6565
container_definitions_map = {
6666
for svc, def in local.task_definitions_with_roles : svc => [
6767
{
68-
name = svc
69-
image = svc == "api-dev" ? "${local.ecr_repo_urls["dev"]}:placeholder" : def.container_image
70-
cpu = def.cpu
71-
memory = def.memory
72-
essential = true
68+
name = svc
69+
image = svc == "api-dev" ? "${local.ecr_repo_urls["dev"]}:placeholder" : def.container_image
70+
cpu = def.cpu
71+
memory = def.memory
72+
essential = true
7373
stopTimeout = lookup(def, "stop_timeout", 30)
74-
command = svc == "api-dev" ? ["java", "-Dspring.profiles.active=dev", "-jar", "/api.jar"] : null
74+
command = svc == "api-dev" ? [
75+
"java",
76+
"-javaagent:/app/dd-java-agent.jar",
77+
"-Ddd.service=eatda-api",
78+
"-Ddd.env=dev",
79+
"-Ddd.version=v1",
80+
"-Ddd.agent.host=172.17.0.1",
81+
"-Dspring.profiles.active=dev",
82+
"-jar",
83+
"/api.jar"
84+
] : null
7585
portMappings = [
7686
for idx, port in def.container_port :
7787
{ name = "${svc}-${port}-tcp", containerPort = port, hostPort = def.host_port[idx], protocol = "tcp" }

0 commit comments

Comments
 (0)