{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/cli/issues/8579","repository_url":"https://api.github.com/repos/dotnet/cli","labels_url":"https://api.github.com/repos/dotnet/cli/issues/8579/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/cli/issues/8579/comments","events_url":"https://api.github.com/repos/dotnet/cli/issues/8579/events","html_url":"https://github.com/dotnet/cli/pull/8579","id":295973749,"number":8579,"title":"Log kernel version, product type and installation type, and libc version","user":{"login":"danmosemsft","id":6385855,"avatar_url":"https://avatars3.githubusercontent.com/u/6385855?v=4","gravatar_id":"","url":"https://api.github.com/users/danmosemsft","html_url":"https://github.com/danmosemsft","followers_url":"https://api.github.com/users/danmosemsft/followers","following_url":"https://api.github.com/users/danmosemsft/following{/other_user}","gists_url":"https://api.github.com/users/danmosemsft/gists{/gist_id}","starred_url":"https://api.github.com/users/danmosemsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmosemsft/subscriptions","organizations_url":"https://api.github.com/users/danmosemsft/orgs","repos_url":"https://api.github.com/users/danmosemsft/repos","events_url":"https://api.github.com/users/danmosemsft/events{/privacy}","received_events_url":"https://api.github.com/users/danmosemsft/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/cli/milestones/17","html_url":"https://github.com/dotnet/cli/milestone/17","labels_url":"https://api.github.com/repos/dotnet/cli/milestones/17/labels","id":2442404,"number":17,"title":"2.1.3xx","description":"","creator":{"login":"livarcocc","id":367554,"avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"open_issues":144,"closed_issues":201,"state":"open","created_at":"2017-04-07T03:54:28Z","updated_at":"2018-02-11T00:35:56Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2018-02-09T18:48:38Z","updated_at":"2018-02-12T01:54:55Z","closed_at":"2018-02-11T00:33:27Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/dotnet/cli/pulls/8579","html_url":"https://github.com/dotnet/cli/pull/8579","diff_url":"https://github.com/dotnet/cli/pull/8579.diff","patch_url":"https://github.com/dotnet/cli/pull/8579.patch"},"body":"Add 5 telemetry datapoints:\r\n\r\n### (1) Kernel version\r\n#### Motivation\r\nIf we have an issue associated with a kernel or libc version we can assess the breadth of impact to help determine the priority of a fix, and whether the fix should go out in servicing. We may be able to use this datapoint to help prioritize features that only affect certain kernel versions.\r\n#### Alternatives\r\nWe have existing datapoints for distro name and version, but this the exact kernel version can vary. For example, we know \"ubuntu.14.04-x64\" but this encompasses a [range of kernel versions](http://people.canonical.com/~kernel/info/kernel-version-map.html).\r\n#### Source\r\nExisting API `RuntimeInformation.OSDescription`, which itself comes from `uname -srv` on Unix and `RtlGetVersion()` on Windows.\r\n#### Notes\r\nNot attempting to parse this value on the client, as the format is not consistent. It includes name, version, architecture, and kernel build date. Note that Windows subsystem for Linux (\"WSL\") can be distinguished by the string \"Microsoft\".\r\n#### Example values\r\n```\r\nAlpine.36\tLinux 4.9.60-linuxkit-aufs #1 SMP Mon Nov 6 16:00:12 UTC 2017\r\nCentos.73 \t Linux 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017\r\nDebian.87 \t Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07)\r\nDebian.90 \t Linux 4.9.0-2-amd64 #1 SMP Debian 4.9.18-1 (2017-03-30)\r\nfedora.25 \t Linux 4.11.3-202.fc25.x86_64 #1 SMP Mon Jun 5 16:38:21 UTC 2017\r\nFedora.26 \t Linux 4.14.15-200.fc26.x86_64 #1 SMP Wed Jan 24 04:26:15 UTC 2018\r\nFedora.27 \t Linux 4.14.14-300.fc27.x86_64 #1 SMP Fri Jan 19 13:19:54 UTC 2018\r\nOpenSuse.423 \t Linux 4.4.104-39-default #1 SMP Thu Jan 4 08:11:03 UTC 2018 (7db1912)\r\nRedHat.69 \t Linux 2.6.32-696.20.1.el6.x86_64 #1 SMP Fri Jan 12 15:07:59 EST 2018\r\nRedHat.72 \t Linux 3.10.0-514.21.1.el7.x86_64 #1 SMP Sat Apr 22 02:41:35 EDT 2017\r\nRedHat.73 \t Linux 3.10.0-514.21.1.el7.x86_64 #1 SMP Sat Apr 22 02:41:35 EDT 2017\r\nSLES.12 \t Linux 4.4.103-6.38-default #1 SMP Mon Dec 25 20:44:33 UTC 2017 (e4b9067)\r\nsuse.422 \t Linux 4.4.49-16-default #1 SMP Sun Feb 19 17:40:35 UTC 2017 (70e9954)\r\nUbuntu.1404 \t Linux 3.19.0-65-generic #73~14.04.1-Ubuntu SMP Wed Jun 29 21:05:22 UTC 2016\r\nUbuntu.1604 \t Linux 4.13.0-1005-azure #7-Ubuntu SMP Mon Jan 8 21:37:36 UTC 2018\r\nUbuntu.1604.WSL \t Linux 4.4.0-43-Microsoft #1-Microsoft Wed Dec 31 14:42:53 PST 2014\r\nUbuntu.1610 \t Linux 4.8.0-45-generic #48-Ubuntu SMP Fri Mar 24 11:46:39 UTC 2017\r\nUbuntu.1704 \t Linux 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017\r\nUbuntu.1710 \t Linux 4.13.0-25-generic #29-Ubuntu SMP Mon Jan 8 21:14:41 UTC 2018\r\nOSX1012 \t Darwin 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64\r\nOSX1013 \t Darwin 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64\r\nWindows.10 \t Microsoft Windows 10.0.14393\r\nWindows.10.Core \t Microsoft Windows 10.0.14393\r\nWindows.10.Nano \t Microsoft Windows 10.0.14393\r\nWindows.7 \t Microsoft Windows 6.1.7601 S\r\nWindows.81 \t Microsoft Windows 6.3.9600\r\n```\r\n\r\n### (2) Windows Installation Type\r\n#### Motivation\r\nThis tells us the relative popularity of Server, Client, Server Core, and Nano which will help us inform product decisions (features, performance work, fixes, blogs, documentation, possibly polyfills).\r\n#### Alternatives\r\n We have an existing datapoint that gives us the OS version (for example \"win10-x64\"), but this can encompass several installation types.\r\n#### Source\r\n`HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion@InstallationType`\r\n#### Example values\r\n```\r\nNano Server\r\nServer Core\r\nServer\r\nClient\r\n```\r\n\r\n### (3) Windows Product Type\r\n#### Motivation\r\nThis tells us the relative popularity of Windows SKU's such as Professional and Enterprise. Like Installation Type, this will help us inform investments and product decisions.\r\n#### Alternatives\r\nAs above, the existing datapoint does not tell us the SKU.\r\n#### Source\r\n`GetProductInfo()`\r\n#### Notes\r\nNot attempting to parse this on the client, as the bitmap can be extended in new Windows versions.\r\n#### Example values\r\n```\r\nEnterprise - \"4\" (0x4) \r\nProfessional - \"48\" (0x30)\r\n```\r\nSee https://msdn.microsoft.com/en-us/library/windows/desktop/ms724358(v=vs.85).aspx  for the full list.\r\n\r\n#### (4, 5) LibC release and version\r\n#### Motivation\r\nHelps decide whether we can take advantage of new libc features. Conversely helps inform deprecation decisions. Also, if there is a bug specific to certain libc versions, we can establish the level of impact.\r\n#### Alternatives\r\nExisting datapoints do not provide this information.\r\n#### Source\r\n`gnu_get_libc_version()` and `gnu_get_libc_release() `for glibc. For musl (Alpine) it seems one must execute `ldd –version | grep “version”`  so I have deferred this. We do have the Alpine kernel version. Also deferred macOS.\r\n#### Example values\r\n```\r\n2.22   stable\r\n2.23   stable\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/cli/issues/comments/364812703","html_url":"https://github.com/dotnet/cli/pull/8579#issuecomment-364812703","issue_url":"https://api.github.com/repos/dotnet/cli/issues/8579","id":364812703,"user":{"login":"livarcocc","id":367554,"avatar_url":"https://avatars3.githubusercontent.com/u/367554?v=4","gravatar_id":"","url":"https://api.github.com/users/livarcocc","html_url":"https://github.com/livarcocc","followers_url":"https://api.github.com/users/livarcocc/followers","following_url":"https://api.github.com/users/livarcocc/following{/other_user}","gists_url":"https://api.github.com/users/livarcocc/gists{/gist_id}","starred_url":"https://api.github.com/users/livarcocc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/livarcocc/subscriptions","organizations_url":"https://api.github.com/users/livarcocc/orgs","repos_url":"https://api.github.com/users/livarcocc/repos","events_url":"https://api.github.com/users/livarcocc/events{/privacy}","received_events_url":"https://api.github.com/users/livarcocc/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T01:54:55Z","updated_at":"2018-02-12T01:54:55Z","author_association":"MEMBER","body":"We flow from the release branches back to master."}}
{"actor":{"display_login":"livarcocc"}}