feat(observability): add guarded SigNoz migration wave A

This commit is contained in:
ogt
2026-07-15 00:49:45 +08:00
parent abdf179f1b
commit 520c0bdb01
12 changed files with 664 additions and 27 deletions

View File

@@ -466,8 +466,9 @@ class Settings(BaseSettings):
# ==========================================================================
# OpenTelemetry (可觀測性鐵律)
# 四主機架構強制校驗: OTEL 必須指向 192.168.0.188AWOOOI 主站)
# ADR-121 + P0-08 修正:改為 config-driven允許 EwoooC 指向不同 host
# P0-OBS-002 dual-route transition: active traffic remains on the bounded
# .188 bridge until replay/shadow/canary receipts exist, while .110 is the
# allowlisted canonical challenger. Promotion is a separate controlled run.
# ==========================================================================
OTEL_ENABLED: bool = Field(
default=True,
@@ -478,11 +479,11 @@ class Settings(BaseSettings):
description="SigNoz OTLP gRPC endpoint (Host port 24317 -> Container 4317) - NO http:// prefix for gRPC",
)
OTEL_ALLOWED_ENDPOINTS: list[str] = Field(
default=["192.168.0.188"],
description="允許的 OTEL endpoint host 列表(逗號分隔可用 env 覆寫。EwoooC 可設自己的 SigNoz host",
default=["192.168.0.188", "192.168.0.110"],
description="允許的 OTEL endpoint host 列表.188 是 transition bridge.110 是 canonical challenger",
)
OTEL_FORBIDDEN_ENDPOINTS: list[str] = Field(
default=["192.168.0.110", "192.168.0.112", "192.168.0.120", "192.168.0.121"],
default=["192.168.0.112", "192.168.0.120", "192.168.0.121"],
description="明確禁止的 OTEL endpoint host 列表(不允許誤指向非 SigNoz 主機)",
)
AWOOOI_K8S_NAMESPACE: str = Field(