diff --git a/apps/api/src/main.py b/apps/api/src/main.py index 8bcc64e4..764323f7 100644 --- a/apps/api/src/main.py +++ b/apps/api/src/main.py @@ -158,6 +158,11 @@ if SENTRY_DSN: # Phase 15.3: Deep Linking hook before_send=_sentry_before_send, ) + # 2026-04-05 Claude Code: 加入統一標籤,對齊 Prometheus/auto_repair layer 規範 + sentry_sdk.set_tag("layer", "k8s") + sentry_sdk.set_tag("component", "api") + sentry_sdk.set_tag("host", "k8s-awoooi-prod") + sentry_sdk.set_tag("team", "backend") logger.info("sentry_initialized", dsn=SENTRY_DSN.split("@")[-1]) else: logger.info("sentry_disabled", reason="SENTRY_DSN not configured")