From 816974c27844da24d6338055fcfce28d07e964a2 Mon Sep 17 00:00:00 2001 From: Juliano Costa Date: Tue, 4 Jun 2024 16:38:43 +0200 Subject: [PATCH 1/2] chore: Add service version to OTEL_RESOURCE_ATTRIBUTES --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index 80bf33f260..c8e8099fc5 100644 --- a/.env +++ b/.env @@ -27,7 +27,7 @@ OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_ PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:8080/otlp-http/v1/traces # OpenTelemetry Resource Definitions -OTEL_RESOURCE_ATTRIBUTES="service.namespace=opentelemetry-demo" +OTEL_RESOURCE_ATTRIBUTES=service.namespace=opentelemetry-demo,service.version=${IMAGE_VERSION} # Metrics Temporality OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulative From 6e09ad96b1f11722f6de750b0a0b01c7e161d89d Mon Sep 17 00:00:00 2001 From: Juliano Costa Date: Tue, 4 Jun 2024 16:41:27 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbd2ec26ba..b4a58674dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,8 @@ the release. ([#1585](https://github.com/open-telemetry/opentelemetry-demo/pull/1585)) * [kafka] Increase memory and Java heap limits ([#1592](https://github.com/open-telemetry/opentelemetry-demo/pull/1592)) +* chore: Add service version to OTEL_RESOURCE_ATTRIBUTES + ([#1594](https://github.com/open-telemetry/opentelemetry-demo/pull/1594)) ## 1.9.0