Skip to content

Commit 3a5df14

Browse files
feat(docker-compose): add temporality preference environment variable (#389)
Co-authored-by: Carter Socha <[email protected]>
1 parent 50e818d commit 3a5df14

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317
77
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT}
88
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=${OTEL_EXPORTER_OTLP_ENDPOINT}
99

10+
# Metrics Temporality
11+
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulative
12+
1013
# Frontend
1114
FRONTEND_PORT=8080
1215
FRONTEND_ADDR=frontend:${FRONTEND_PORT}

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ services:
6060
- AD_SERVICE_PORT
6161
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
6262
- OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
63+
- OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
6364
- OTEL_SERVICE_NAME=adservice
6465
depends_on:
6566
- otelcol

0 commit comments

Comments
 (0)