Skip to content

🔊 Send source-code-context telemetry usage - #4675

Merged
amortemousque merged 2 commits into
mainfrom
aymeric/telemetry-source-code-context
May 27, 2026
Merged

🔊 Send source-code-context telemetry usage#4675
amortemousque merged 2 commits into
mainfrom
aymeric/telemetry-source-code-context

Conversation

@amortemousque

@amortemousque amortemousque commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Motivation

Measure customer adoption of the microfrontend source code attribution feature (DD_SOURCE_CODE_CONTEXT global).

Changes

  • packages/rum-core/src/domain/contexts/sourceCodeContext.ts: call addTelemetryUsage({ feature: 'source-code-context' }) when window.DD_SOURCE_CODE_CONTEXT is set
  • Regenerated telemetryEvent.types.ts and rumEvent.types.ts from the updated rum-events-format schema (adds SourceCodeContext to TelemetryBrowserFeaturesUsage)

Test instructions

  1. yarn dev
  2. Open http://localhost:8080/test.html (sets window.DD_SOURCE_CODE_CONTEXT before RUM init and configures telemetry sample rates to 100)
  3. Look at Browser SDK extension event

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

@amortemousque
amortemousque requested a review from a team as a code owner May 26, 2026 14:58
@amortemousque amortemousque changed the title ✨ Emit source-code-context telemetry usage 🔊 Send source-code-context telemetry usage May 26, 2026
@cit-pr-commenter-54b7da

cit-pr-commenter-54b7da Bot commented May 26, 2026

Copy link
Copy Markdown

Bundles Sizes Evolution

📦 Bundle Name Base Size Local Size 𝚫 𝚫% Status
Rum 173.72 KiB 173.76 KiB +42 B +0.02%
Rum Profiler 8.07 KiB 8.07 KiB 0 B 0.00%
Rum Recorder 21.23 KiB 21.23 KiB 0 B 0.00%
Logs 57.05 KiB 57.05 KiB 0 B 0.00%
Rum Slim 131.41 KiB 131.44 KiB +36 B +0.03%
Worker 22.99 KiB 22.99 KiB 0 B 0.00%

🔗 RealWorld

@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented May 26, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 76.83% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d84a9f4 | Docs | Datadog PR Page | Give us feedback!

@amortemousque
amortemousque force-pushed the aymeric/telemetry-source-code-context branch 2 times, most recently from d292d46 to 34a9cb5 Compare May 26, 2026 19:56
@amortemousque
amortemousque force-pushed the aymeric/telemetry-source-code-context branch from 34a9cb5 to 6e1e1ff Compare May 26, 2026 19:59
@amortemousque
amortemousque merged commit f4e1b06 into main May 27, 2026
26 checks passed
@amortemousque
amortemousque deleted the aymeric/telemetry-source-code-context branch May 27, 2026 09:00
@github-actions github-actions Bot locked and limited conversation to collaborators May 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants