Skip to content

Fix missing telemetry context fields for web extension events#1554

Merged
amitjoshi438 merged 2 commits intomainfrom
users/amitjoshi/fix-telemetry-context-fields
Apr 15, 2026
Merged

Fix missing telemetry context fields for web extension events#1554
amitjoshi438 merged 2 commits intomainfrom
users/amitjoshi/fix-telemetry-context-fields

Conversation

@amitjoshi438
Copy link
Copy Markdown
Contributor

Summary

  • PR Simplify URL params for launching VS Code Web #1490 removed tenantId, websiteId, dataSource, and schema from the WEB_EXTENSION_INIT_QUERY_PARAMETERS telemetry event, but populateVscodeWebAttributes() in oneDSLogger.ts still reads them to populate global telemetry context
  • This caused TenantId, Context.websiteId, Context.dataSource, and Context.schema to be empty (0% populated) for all web extension events for 30+ days
  • Restores the missing properties sourced from WebExtensionContext (which is already populated by initializeWebsiteDetails() before the telemetry event is sent)

Test plan

  • Build passes with no new errors
  • All 95 unit tests pass
  • Verify in Kusto after deployment that TenantId, Context.websiteId, Context.dataSource, and Context.schema are populated for web extension events

🤖 Generated with Claude Code

@amitjoshi438 amitjoshi438 requested review from a team as code owners April 15, 2026 12:08
@amitjoshi438 amitjoshi438 force-pushed the users/amitjoshi/fix-telemetry-context-fields branch from 42dad31 to 7a5c377 Compare April 15, 2026 12:11
Comment thread src/web/client/telemetry/webExtensionTelemetry.ts Outdated
PR #1490 removed tenantId, websiteId, dataSource, and schema from the
WEB_EXTENSION_INIT_QUERY_PARAMETERS telemetry event but oneDSLogger
still reads them to populate global context. This caused these fields
to be empty for all web extension events. Restore them sourced from
WebExtensionContext which is already populated by initializeWebsiteDetails().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@amitjoshi438 amitjoshi438 force-pushed the users/amitjoshi/fix-telemetry-context-fields branch from 7a5c377 to 5ed4bee Compare April 15, 2026 13:13
@amitjoshi438 amitjoshi438 enabled auto-merge (squash) April 15, 2026 13:16
@amitjoshi438 amitjoshi438 merged commit beb928a into main Apr 15, 2026
9 checks passed
@amitjoshi438 amitjoshi438 deleted the users/amitjoshi/fix-telemetry-context-fields branch April 15, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants