From cd7d63eeb158f679e12c91d78e2a08edf1916d2d Mon Sep 17 00:00:00 2001 From: OG T Date: Tue, 24 Mar 2026 16:03:37 +0800 Subject: [PATCH] feat(cicd): Add OTEL tracing to SignOz for CI/CD monitoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - CI: awoooi-ci service with sha + ci environment - CD: awoooi-cd service with sha + production environment - Exports to SignOz at 192.168.0.121:4318 Approved: 2026-03-24 統帥指令 Co-Authored-By: Claude Opus 4.5 --- .github/workflows/cd.yaml | 4 ++++ .github/workflows/ci.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 9598d696..058b29b5 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -43,6 +43,10 @@ env: IMAGE_PREFIX: library/awoooi LOCAL_CACHE_DIR: /home/wooo/build-cache/awoooi OPENCLAW_URL: http://192.168.0.188:8088 + # OTEL CI/CD 監控 (2026-03-24 批准) + OTEL_EXPORTER_OTLP_ENDPOINT: http://192.168.0.121:4318 + OTEL_SERVICE_NAME: awoooi-cd + OTEL_RESOURCE_ATTRIBUTES: service.version=${{ github.sha }},deployment.environment=production jobs: # ==================== Pre-flight Check (10s Fail-Fast) ==================== diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 25bf78c9..b9369735 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,6 +19,10 @@ env: NODE_VERSION: '20' PNPM_VERSION: '9' PYTHON_VERSION: '3.11' + # OTEL CI/CD 監控 (2026-03-24 批准) + OTEL_EXPORTER_OTLP_ENDPOINT: http://192.168.0.121:4318 + OTEL_SERVICE_NAME: awoooi-ci + OTEL_RESOURCE_ATTRIBUTES: service.version=${{ github.sha }},deployment.environment=ci jobs: # ==================== Pre-flight (10s Fail-Fast) ====================