Repository navigation
[browser] Add publish-time telemetry for WebAssembly configuration properties - #123534
Conversation
…rties Co-authored-by: maraf <[email protected]>
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
|
@copilot Include |
Co-authored-by: maraf <[email protected]>
|
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
…sibility point - Add public WorkloadTelemetryDependsOn property to WorkloadTelemetry.targets so downstream targets can hook into the telemetry pipeline - Replace standalone _WasmPublishTelemetry target and WasmPublishConfig event with _GatherWasmPublishTelemetry that appends to WorkloadPublishProperties - No new telemetry event name needed; reuses existing allow-listed event Co-authored-by: Copilot <[email protected]>
Code Review: Add publish-time telemetry for WebAssembly/Blazor config propertiesVerdict: LGTM 👍 SummaryThis PR adds WASM-specific publish telemetry by:
AnalysisArchitecture & Design ✅ Correctness ✅
Property evaluation ordering ✅
No issues found. The change is minimal, well-targeted, and follows established patterns in the telemetry infrastructure.
|
|
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
|
@copilot resolve the merge conflicts in this pull request |
Resolved conflict in Microsoft.NET.Sdk.WebAssembly.Browser.targets by keeping both: - My _GatherWasmPublishTelemetry target for telemetry collection - The new _RootEntireIntermediateAssembly target from main Co-authored-by: maraf <[email protected]>
Description
Adds telemetry to capture effective values of key WASM/Blazor publish configuration properties (globalization mode, boot config shape, fingerprinting, preload behavior, bundler friendliness, runtime selection) to inform defaults and compatibility decisions.
The workload extensibility is mirrored in dotnet/sdk#55026.
Add workload detection in dotnet/sdk#55089.
Changes
Added
_GatherWasmPublishTelemetrytarget inMicrosoft.NET.Sdk.WebAssembly.Browser.targetsWorkloadTelemetryDependsOnextensibility pointCondition="'$(WasmBuildingForNestedPublish)' != 'true'"WorkloadPublishPropertiestelemetry eventCaptures 10 properties using normalized internal values where applicable:
InvariantTimezone(derived fromBlazorEnableTimeZoneSupport)InvariantGlobalization(_WasmInvariantGlobalization)BlazorWebAssemblyLoadAllGlobalizationData(_BlazorWebAssemblyLoadAllGlobalizationData)WasmEnableWebcil(_WasmEnableWebcil)WasmInlineBootConfig(_WasmInlineBootConfig)OverrideHtmlAssetPlaceholders(raw value)WasmFingerprintBootConfig(_WasmFingerprintBootConfig)WasmPreloadAssets(_WasmPreloadAssets)WasmBundlerFriendlyBootConfig(_WasmBundlerFriendlyBootConfig)UseMonoRuntime(raw value)Notes
Integrates with the existing
WorkloadPublishPropertiestelemetry event. Properties collected here need to be synchronized with SDK telemetry documentation at https://github.com/dotnet/sdk/blob/main/documentation/project-docs/telemetry.md.No PII—only boolean configuration flags.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.