Skip to content

Commit d490bea

Browse files
authored
Merge pull request github#5211 from shati-patel/docs-telemetry
Docs (CodeQL for VS Code): Move info about telemetry into codeql.github.com
2 parents 9798e60 + 97eb98e commit d490bea

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed

docs/codeql/codeql-for-visual-studio-code/about-codeql-for-visual-studio-code.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ features for query files (extension ``.ql``) and library files (extension ``.qll
2626

2727
You can also use the VS Code **Format Document** command to format your code according to the `CodeQL style guide <https://github.com/github/codeql/blob/main/docs/ql-style-guide.md>`__.
2828

29+
Data and telemetry
30+
-------------------
31+
32+
If you specifically opt in to permit GitHub to do so, GitHub will collect usage data and metrics for the purposes of helping the core developers to improve the CodeQL extension for VS Code.
33+
For more information, see ":doc:`About telemetry in CodeQL for Visual Studio Code <about-telemetry-in-codeql-for-visual-studio-code>`."
34+
2935
Further reading
3036
-------------------
3137

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
:tocdepth: 1
2+
3+
.. _about-telemetry-in-codeql-for-visual-studio-code:
4+
5+
About telemetry in CodeQL for Visual Studio Code
6+
=================================================
7+
8+
If you specifically opt in to permit GitHub to do so, GitHub will collect usage data and metrics for the purposes of helping the core developers to improve the CodeQL extension for VS Code.
9+
10+
This data will not be shared with any parties outside of GitHub. IP addresses and installation IDs will be retained for a maximum of 30 days. Anonymous data will be retained for a maximum of 180 days.
11+
12+
Why we collect data
13+
--------------------------------------
14+
15+
GitHub collects aggregated, anonymous usage data and metrics to help us improve CodeQL for VS Code. IP addresses and installation IDs are collected only to ensure that anonymous data is not duplicated during aggregation.
16+
17+
What data is collected
18+
--------------------------------------
19+
20+
If you opt in, GitHub collects the following information related to the usage of the extension. The data collected are:
21+
22+
- The identifiers of any CodeQL-related VS Code commands that are run.
23+
- For each command: the timestamp, time taken, and whether or not the command completed successfully.
24+
- VS Code and extension version.
25+
- Randomly generated GUID that uniquely identifies a CodeQL extension installation. (Discarded before aggregation.)
26+
- IP address of the client sending the telemetry data. (Discarded before aggregation.)
27+
- Whether or not the ``codeQL.canary`` setting is enabled and set to ``true``.
28+
29+
How long data is retained
30+
--------------------------
31+
32+
IP address and GUIDs will be retained for a maximum of 30 days. Anonymous, aggregated data that includes command identifiers, run times, and timestamps will be retained for a maximum of 180 days.
33+
34+
Access to the data
35+
-------------------
36+
37+
IP address and GUIDs will only be available to the core developers of CodeQL. Aggregated data will be available to GitHub employees.
38+
39+
What data is **NOT** collected
40+
--------------------------------
41+
42+
We only collect the minimal amount of data we need to answer the questions about how our users are experiencing this product. To that end, we do not collect the following information:
43+
44+
- No GitHub user ID
45+
- No CodeQL database names or contents
46+
- No contents of CodeQL queries
47+
- No filesystem paths
48+
49+
Disabling telemetry reporting
50+
------------------------------
51+
52+
Telemetry collection is *disabled* by default.
53+
54+
When telemetry collection is disabled, no data will be sent to GitHub servers.
55+
56+
You can disable telemetry collection by setting ``codeQL.telemetry.enableTelemetry`` to ``false`` in your settings. For more information about CodeQL settings, see ":doc:`Customizing settings <customizing-settings>`."
57+
58+
Additionally, telemetry collection will be disabled if the global ``telemetry.enableTelemetry`` setting is set to ``false``. For more information about global telemetry collection, see "`Microsoft's documentation <https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting>`__."
59+
60+
Further reading
61+
----------------
62+
63+
For more information, see GitHub's "`Privacy Statement <https://docs.github.com/github/site-policy/github-privacy-statement>`__" and "`Terms of Service <https://docs.github.com/github/site-policy/github-terms-of-service>`__."

docs/codeql/codeql-for-visual-studio-code/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ The CodeQL extension for Visual Studio Code adds rich language support for CodeQ
3939
<troubleshooting-codeql-for-visual-studio-code>`: You can use the detailed
4040
information written to the extension's log files if you need to troubleshoot problems.
4141

42+
- :doc:`About telemetry in CodeQL for Visual Studio Code <about-telemetry-in-codeql-for-visual-studio-code>`: If you specifically opt in to permit GitHub to do so, GitHub will collect usage data and metrics for the purposes of helping the core developers to improve the CodeQL extension for VS Code.
43+
4244
.. toctree::
4345
:hidden:
4446
:titlesonly:
@@ -51,3 +53,4 @@ The CodeQL extension for Visual Studio Code adds rich language support for CodeQ
5153
testing-codeql-queries-in-visual-studio-code
5254
customizing-settings
5355
troubleshooting-codeql-for-visual-studio-code
56+
about-telemetry-in-codeql-for-visual-studio-code

0 commit comments

Comments
 (0)