react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

[Telemetry] Migration from AppInsights to 1DS

Open danielayala94 opened this issue 1 year ago • 0 comments

Description

Type of Change

New feature.

Why

Enable posting telemetry data to have information that will allow us to take informed decisions on what areas of RNW we should focus, identify customer pains, RNW usage, etc.

Resolves #10473 Resolves #10142 Resolves #10141

What

  • Refactored Telemetry class, by changing all App Insights SDK references to 1DS core+post APIs. The most noticeable changes are:
    • Replaced TelemetryClient with AppInsightsCore.
    • Refactored post event logic to craft a telemetry item object.
    • Manually parsed stack trace into decomposed frames, as 1DS doesn't provide such functionality (which AppInsights does).
  • Refactored some of the testing code to account for the changes in the Telemetry class.

Testing

All E2E tests on telemetry.test.ts are passing after the refactoring. All other telemetry tests are passing after the refactoring as well.

Changelog

Yes

Microsoft Reviewers: Open in CodeFlow

danielayala94 avatar Jul 24 '24 23:07 danielayala94