Skip to content

Commit 9830686

Browse files
committed
feat(env): add TEMPO_URL variable for tracing configuration
This change introduces a new environment variable for the tracing endpoint, improving configuration flexibility in the application.
1 parent cbb07dd commit 9830686

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ DB_USER=postgres
66
DB_PASSWORD=postgres
77
CACHE_URL=redis
88
CACHE_PORT=6379
9+
TEMPO_URL=http://tempo:4318/v1/traces
910

1011
#Variables for Docker Compose Database service
1112
POSTGRES_USER=postgres

docker-compose.dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- DB_PASSWORD=${DB_PASSWORD}
1313
- CACHE_URL=${CACHE_URL}
1414
- CACHE_PORT=${CACHE_PORT}
15+
- TEMPO_URL=${TEMPO_URL}
1516
ports:
1617
- "8080:8080"
1718
depends_on:

src/main/resources/application-dev.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ springdoc:
3232
operationsSorter: method
3333
tagsSorter: alpha
3434
path: /
35-
#Tracing
3635
management:
3736
tracing:
3837
sampling:
3938
probability: 1
4039
enabled: true
4140
otlp:
4241
tracing:
43-
endpoint: http://tempo:4318/v1/traces
42+
endpoint: ${TEMPO_URL}
4443
endpoints:
4544
web:
4645
exposure:
@@ -49,12 +48,9 @@ management:
4948
metrics:
5049
export:
5150
enabled: true
52-
#Logging
5351
logging:
5452
file:
5553
name: logs/app.log
56-
# pattern:
57-
# level: ""%5p [%X{traceId},%X{spanId}]"
5854
level:
5955
root: INFO
6056
com.example.store: INFO

0 commit comments

Comments
 (0)