mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
# Which Problems Are Solved The OTEL service.name resource attribute is hardcoded to "ZITADEL" in setupOTelSDK, so the Instrumentation.ServiceName config and the OTEL_SERVICE_NAME environment variable are both ignored. This makes it impossible to distinguish between multiple Zitadel instances or co-located services in tracing dashboards and alerting rules. # How the Problems Are Solved The hardcoded string is replaced with cfg.ServiceName so the configured value flows through. An explicit check for the OTEL_SERVICE_NAME environment variable is added at the top of resourceWithService, giving it the highest priority per the OpenTelemetry specification. # Additional Changes None. # Additional Context Closes #11455 Backport to v4