ApplicationInsights-JS icon indicating copy to clipboard operation
ApplicationInsights-JS copied to clipboard

[BUG] client_OS doesn't show Windows 11

Open coreyroth opened this issue 4 years ago • 8 comments

I don't know if this is by design of either Windows / Edge and / or the Application Insights SDK. However, I noticed that the client_OS field in pageViews shows Windows 10 instead of Windows 11.

I am guessing the SDK uses either navigator.appVersion, navigator.userAgent, or navigator.userAgentData to determine the value for this column. When examining that string I can see the difficulty. However, I wanted to raise this as I know customers have an interest in seeing the breakdown between Windows 10 and Windows 11.

Steps to Reproduce Log a pageView using the SDK on a Windows 11 device.

  • OS/Browser: Windows 11 / Edge
  • SDK Version [e.g. 22]: 2.6.4
  • How you initialized the SDK: npm package

Expected behavior client_OS shows Windows 11

coreyroth avatar Nov 24 '21 14:11 coreyroth

This is also problematic as the chromium UserAgent reported by windows 11 actually identifies as Windows 10. And by default the new secure client headers do not send the OS version. Also on the client the getHighEntrophyValues() API (the only way to get the reported OS version -- which is v14 on Windows 11) is asynchronous, so unless you hold up the PageView event from being reported (which will affect the reported time) this information would also not be included.

MSNev avatar Mar 01 '22 18:03 MSNev

This Issue will be closed in 30 days. Please remove the "Stale" label or comment to avoid closure with no action.

github-actions[bot] avatar Dec 27 '22 07:12 github-actions[bot]

This Issue will be closed in 30 days. Please remove the "Stale" label or comment to avoid closure with no action.

github-actions[bot] avatar Nov 06 '23 07:11 github-actions[bot]

We would also appreciate the ability to see the distribution of Windows 10 and Windows 11 customers. We are still seeing this issue when using these versions:

  • @microsoft/applicationinsights-react-js 17.0.2
  • @microsoft/applicationinsights-web version 3.0.5

htryggva avatar Nov 27 '23 14:11 htryggva