Skip to content

Commit d75c9d8

Browse files
chore: Add service version to OTEL_RESOURCE_ATTRIBUTES (#1594)
* chore: Add service version to OTEL_RESOURCE_ATTRIBUTES * changelog
1 parent 2ca2be6 commit d75c9d8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ OTEL_EXPORTER_OTLP_ENDPOINT=http://${OTEL_COLLECTOR_HOST}:${OTEL_COLLECTOR_PORT_
2929
PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:8080/otlp-http/v1/traces
3030

3131
# OpenTelemetry Resource Definitions
32-
OTEL_RESOURCE_ATTRIBUTES="service.namespace=opentelemetry-demo"
32+
OTEL_RESOURCE_ATTRIBUTES=service.namespace=opentelemetry-demo,service.version=${IMAGE_VERSION}
3333

3434
# Metrics Temporality
3535
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=cumulative

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ the release.
4545
([#1585](https://github.com/open-telemetry/opentelemetry-demo/pull/1585))
4646
* [kafka] Increase memory and Java heap limits
4747
([#1592](https://github.com/open-telemetry/opentelemetry-demo/pull/1592))
48+
* chore: Add service version to OTEL_RESOURCE_ATTRIBUTES
49+
([#1594](https://github.com/open-telemetry/opentelemetry-demo/pull/1594))
4850

4951
## 1.9.0
5052

0 commit comments

Comments
 (0)