fix: use awf.usage namespace for cache/reasoning OTEL attributes#3495
Conversation
Sentry only surfaces well-known gen_ai.usage.* attributes (input_tokens, output_tokens, total_tokens) and drops custom additions to that namespace. Move cache and reasoning token attributes to awf.usage.* namespace where Sentry will display them as regular span tags: - awf.usage.cache_read_tokens - awf.usage.cache_write_tokens - awf.usage.reasoning_tokens Keep gen_ai.usage.input_tokens and gen_ai.usage.output_tokens on the standard namespace since Sentry recognizes those. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
Smoke Test Results✅ GitHub API test — 2 PR entries confirmed Result: PASS
|
🔬 Smoke Test ResultsPR: fix: use awf.usage namespace for cache/reasoning OTEL attributes — @lpcox
Overall: PARTIAL — MCP connectivity confirmed; pre-step outputs were not substituted (template vars unexpanded), so HTTP and file tests could not be verified.
|
|
Smoke Test: Copilot BYOK (Offline) Mode
Running in BYOK offline mode (COPILOT_OFFLINE=true) via api-proxy → api.githubcopilot.com PR author: @lpcox | Status: PARTIAL (core BYOK path ✅, pre-step data unavailable)
|
Smoke Test: API Proxy OpenTelemetry Tracing
All scenarios pass. OTEL tracing integration is functioning correctly.
|
|
Smoke Test: FAIL 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.
|
Chroot Version Comparison
Result: ❌ Not all versions matched — Python and Node.js versions differ between host and chroot environments.
|
Gemini Engine Smoke Test Results
Overall status: 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.
|
🏗️ Build Test Suite Results
Overall: 8/8 ecosystems passed — ✅ PASS
|
Smoke Test: GitHub Actions Services Connectivity
Overall: FAIL —
|
Sentry only surfaces well-known
gen_ai.usage.*attributes (input_tokens,output_tokens,total_tokens) and drops custom additions to that namespace.Moves cache and reasoning attributes to
awf.usage.*namespace:awf.usage.cache_read_tokensawf.usage.cache_write_tokensawf.usage.reasoning_tokensThese will appear as regular span tags in Sentry.