添加 otel 相关环境变量,优化部署配置
Some checks failed
Docker / build (push) Has been cancelled

This commit is contained in:
2025-12-19 15:13:46 +08:00
parent 2b190bd4e5
commit c8fd4cf9ca
5 changed files with 27 additions and 24 deletions

6
pkg/env/env.go vendored
View File

@@ -36,6 +36,9 @@ var (
RedisPort = "6379"
RedisPassword = ""
OtelHost string
OtelPort string
BaiyinCloudUrl string
BaiyinTokenUrl string
@@ -115,6 +118,9 @@ func Init() {
errs = append(errs, parse(&RedisPort, "REDIS_PORT", true, nil))
errs = append(errs, parse(&RedisPassword, "REDIS_PASS", true, nil))
errs = append(errs, parse(&OtelHost, "OTEL_HOST", true, nil))
errs = append(errs, parse(&OtelPort, "OTEL_PORT", true, nil))
errs = append(errs, parse(&BaiyinCloudUrl, "BAIYIN_CLOUD_URL", false, nil))
errs = append(errs, parse(&BaiyinTokenUrl, "BAIYIN_TOKEN_URL", false, nil))