[docs] docs: sync OTEL attribute names and environment variable references#3512
Conversation
- Update api-proxy-sidecar.md: correct OTEL attribute names to match current code - awf.cache_read_tokens → awf.cached_read - awf.cache_write_tokens → awf.cached_write - Add missing awf.reasoning attribute - Update otel-sentry.md: fix environment variable names to match implementation - AWF_OTEL_TRACE_ID → GITHUB_AW_OTEL_TRACE_ID - AWF_OTEL_SPAN_ID → GITHUB_AW_OTEL_PARENT_SPAN_ID These changes sync documentation with the code changes from recent commits: - Commit 719b171: rename OTEL cache attrs to avoid Sentry PII scrubber - Commit ebf303e: add OTEL Sentry attribute reference documentation Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Smoke Test Results✅ GitHub API - Confirmed 2 PR entries in recent-prs.json Result: PASS ✅ All tests passed.
|
🔬 Smoke Test Results
PR: [docs] sync OTEL attribute names and environment variable references — author: Overall: PARTIAL — MCP test passed; connectivity/file tests could not be verified due to missing pre-step outputs.
|
🔥 Smoke Test: Copilot BYOK (Offline) Mode
Running in BYOK offline mode (
PR author:
|
|
Smoke Test Results: MCP (FAIL), Connectivity (FAIL), File Writing (PASS), Bash Tool (PASS). Overall: FAIL Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "localhost"See Network Configuration for more information.
|
|
✅ GitHub PR review: docs: add OTEL Sentry attribute reference | fix: rename OTEL cache attrs to avoid Sentry PII scrubber Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
network:
allowed:
- defaults
- "registry.npmjs.org"See Network Configuration for more information.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test Results — FAIL
Overall: ❌ FAIL
|
Documentation Sync - May 21, 2026
This PR synchronizes documentation with code changes from the past 7 days, specifically the recent OTEL (OpenTelemetry) attribute naming changes.
Changes Made
Updated
docs/api-proxy-sidecar.md: Corrected OTEL attribute names to match current codeawf.cache_read_tokens→awf.cached_readawf.cache_write_tokens→awf.cached_writeawf.reasoningattribute to the span attributes tableUpdated
docs/otel-sentry.md: Fixed environment variable names to match actual implementationAWF_OTEL_TRACE_ID→GITHUB_AW_OTEL_TRACE_IDAWF_OTEL_SPAN_ID→GITHUB_AW_OTEL_PARENT_SPAN_IDCode Changes Referenced
awf.cache_*_tokenstoawf.cached_*to prevent Sentry's PII scrubber from redacting themVerification
containers/api-proxy/otel.jsuses the corrected attribute namesGITHUB_AW_OTEL_TRACE_IDandGITHUB_AW_OTEL_PARENT_SPAN_ID(not the AWF_ prefix variant)docs/environment.mdalready documents the correct env var namesWhy This Matters
Accurate documentation is critical for secure usage of the firewall. Incorrect environment variable names or attribute references would cause: