-
Notifications
You must be signed in to change notification settings - Fork 191
Expand file tree
/
Copy pathdiff_lines.txt
More file actions
79 lines (79 loc) · 2.31 KB
/
Copy pathdiff_lines.txt
File metadata and controls
79 lines (79 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
--- a/.env.example
+++ b/.env.example
+# OpenTelemetry Jaeger tracing configuration
+JAEGER_AGENT_HOST=localhost
+JAEGER_AGENT_PORT=6831
+
--- a/.env.staging
+++ b/.env.staging
+JAEGER_AGENT_HOST=jaeger
+JAEGER_AGENT_PORT=6831
--- a/docker-compose.staging.yml
+++ b/docker-compose.staging.yml
+ JAEGER_AGENT_HOST: jaeger
+ JAEGER_AGENT_PORT: 6831
+ jaeger:
+ condition: service_started
+ # GöÇGöÇGöÇ Jaeger Tracing GöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇ
+ jaeger:
+ image: jaegertracing/all-in-one:1.48
+ container_name: teachlink-staging-jaeger
+ restart: unless-stopped
+ ports:
+ - '6831:6831/udp'
+ - '16686:16686'
+ networks:
+ - teachlink-staging
+ environment:
+ COLLECTOR_ZIPKIN_HTTP_PORT: 9411
+ healthcheck:
+ test: ['CMD-SHELL', 'curl -f http://localhost:16686/jaeger/api/v1/services || exit 1']
+ interval: 30s
+ timeout: 10s
+ retries: 5
+ start_period: 15s
+ deploy:
+ resources:
+ limits:
+ cpus: '0.25'
+ memory: 128M
+ reservations:
+ cpus: '0.05'
+ memory: 32M
+
--- a/infra/monitoring/docker-compose.yml
+++ b/infra/monitoring/docker-compose.yml
+ JAEGER_AGENT_HOST: jaeger
+ JAEGER_AGENT_PORT: 6831
+ jaeger:
+ condition: service_started
+ # GöÇGöÇGöÇ Jaeger Tracing GöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇGöÇ
+ jaeger:
+ image: jaegertracing/all-in-one:1.48
+ container_name: teachlink-jaeger
+ restart: unless-stopped
+ ports:
+ - '6831:6831/udp'
+ - '16686:16686'
+ networks:
+ - teachlink
+ environment:
+ COLLECTOR_ZIPKIN_HTTP_PORT: 9411
+ healthcheck:
+ test: ['CMD-SHELL', 'curl -f http://localhost:16686/jaeger/api/v1/services || exit 1']
+ interval: 30s
+ timeout: 10s
+ retries: 5
+ start_period: 15s
+ deploy:
+ resources:
+ limits:
+ cpus: '0.25'
+ memory: 128M
+ reservations:
+ cpus: '0.05'
+ memory: 32M
+
--- a/src/main.ts
+++ b/src/main.ts
+import './tracing/opentelemetry';