Skip to content

[Telemetry] Add RnwNewArch to MSBuildProperties#14208

Merged
danielayala94 merged 3 commits intomicrosoft:mainfrom
danielayala94:addTelemetryProp
Dec 17, 2024
Merged

[Telemetry] Add RnwNewArch to MSBuildProperties#14208
danielayala94 merged 3 commits intomicrosoft:mainfrom
danielayala94:addTelemetryProp

Conversation

@danielayala94
Copy link
Copy Markdown
Contributor

@danielayala94 danielayala94 commented Dec 14, 2024

Description

Add RnwNewArch and UseFabric properties to MSBuildProperties, indicating if the project is using Paper or Fabric.

Type of Change

  • New feature (non-breaking change which adds functionality)

Why

By using telemetry data, we want to determine the adoption level of Fabric.

Resolves #14047

What

Included RnwNewArch and UseFabric in the properties written into msproperties.g.json (via OutputMSBuildProperties.targets), which are picked up by run-windows to pass all the properties as extraProps for telemetry logging.

Screenshots

image

Testing

Ran run-windows in a debugger and verified that RnwNewArch and UseFabric are written into msproperties.g.json and they are passed to Telemetry.trackCommandEvent().

Changelog

No

Microsoft Reviewers: Open in CodeFlow

"UseExperimentalNuGet": "$(UseExperimentalNuGet)",
"UseHermes": "$(UseHermes)",
"UseWinUI3": "$(UseWinUI3)"
"UseWinUI3": "$(UseWinUI3)",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that I particularly like it, but you could include UseFabric in here just in case to catch edge cases.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What edge cases would be covered by including UseFabric that RnwNewArch would not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Assess and add missing telemetry fields

3 participants