Skip to content

v8.5.3: update telemetry related doc files #21404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Oreoxmt
Copy link
Collaborator

@Oreoxmt Oreoxmt commented Jul 15, 2025

What is changed, added or deleted? (Required)

Modified telemetry related doc files. Ref link pingcap/tidb#61753

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions (in Chinese).

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

What is the related PR or file link(s)?

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

@Oreoxmt Oreoxmt self-assigned this Jul 15, 2025
@Oreoxmt Oreoxmt added translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. type/compatibility-or-feature-change This PR involves compatibility changes or feature behavior changes. labels Jul 15, 2025
Copy link

ti-chi-bot bot commented Jul 15, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from oreoxmt. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Oreoxmt
Copy link
Collaborator Author

Oreoxmt commented Jul 15, 2025

/cc @Defined2014

@ti-chi-bot ti-chi-bot bot requested a review from Defined2014 July 15, 2025 09:32
@ti-chi-bot ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 15, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @Oreoxmt, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on updating the documentation to reflect a significant change in the TiDB telemetry feature. The telemetry functionality, which was previously removed in versions 8.1.0 through 8.5.1, is being re-introduced in version 8.5.3. However, its operation is now strictly limited to local logging, ensuring no data is transmitted externally. The changes clarify the feature's behavior across different TiDB versions and update related system variable and configuration file descriptions.

Highlights

  • Telemetry Feature Reintroduction and Behavior Change: The telemetry feature in TiDB is being re-introduced starting from v8.5.3. Crucially, its functionality is now limited to local logging of telemetry-related information, and it will no longer send data to PingCAP over the network. This marks a significant shift from its previous behavior and its removal in intermediate versions.
  • Documentation Updates for Telemetry Status: Multiple documentation files, including release notes for v6.1.5, v6.5.1, v6.6.0, and v8.1.0, as well as the system-variables.md, telemetry.md, and tidb-configuration-file.md files, have been updated. These updates reflect the re-introduction and the new, local-only behavior of the telemetry feature, clarifying its status across different TiDB versions.
  • Default Value Change for tidb_enable_telemetry: The default value for the tidb_enable_telemetry system variable has been changed from OFF to ON starting from v8.5.3. The documentation also clarifies that, from v8.5.3, this variable's effect is contingent on the enable-telemetry configuration item of the TiDB instance being set to true.
  • Link Updates for Telemetry Parameters: References to tidb_enable_telemetry and enable-telemetry across various documentation files have been updated by removing the 'and deprecated in v8.1.0' suffix from their links, reflecting the revised status of these parameters.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The pull request updates the documentation for the telemetry feature to reflect its reintroduction in v8.5.3 with local-only logging. The changes are accurate and consistent across the updated files. I've provided a few suggestions to improve clarity and adhere to the documentation style guide, mainly concerning tense consistency for historical descriptions and markdown formatting for code elements.


> **Warning:**
>
> Starting from v8.1.0, the telemetry feature in TiDB is removed, and this variable is no longer functional. It is retained solely for compatibility with earlier versions.
> - For versions earlier than v8.1.0, TiDB periodically reports telemetry data to PingCAP.

Choose a reason for hiding this comment

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

low

To improve clarity and adhere to the style guide's preference for using past tense for historical behavior1, I suggest rephrasing this sentence. Also, the variable name should be enclosed in backticks for consistency2.

Style Guide References

Suggested change
> - For versions earlier than v8.1.0, TiDB periodically reports telemetry data to PingCAP.
> - For versions earlier than v8.1.0, TiDB periodically reported telemetry data to PingCAP.

Footnotes

  1. The style guide recommends using present tense unless describing historical behavior. Since these lines describe the behavior of past versions, using the past tense is more appropriate. (link)

  2. The style guide requires that code snippets, command names, options, and paths should be enclosed in backticks. (link)


> **Warning:**
>
> Starting from v8.1.0, the telemetry feature in TiDB is removed, and this variable is no longer functional. It is retained solely for compatibility with earlier versions.
> - For versions earlier than v8.1.0, TiDB periodically reports telemetry data to PingCAP.
> - For versions from v8.1.0 to v8.5.1, TiDB removes the telemetry feature and the `tidb_enable_telemetry` variable no longer takes effect. It is retained solely for compatibility with earlier versions.

Choose a reason for hiding this comment

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

low

To improve clarity and adhere to the style guide's preference for using past tense for historical behavior1, I suggest rephrasing this sentence. Also, the variable name should be enclosed in backticks for consistency2.

Style Guide References

Suggested change
> - For versions from v8.1.0 to v8.5.1, TiDB removes the telemetry feature and the `tidb_enable_telemetry` variable no longer takes effect. It is retained solely for compatibility with earlier versions.
> - For versions from v8.1.0 to v8.5.1, TiDB removed the telemetry feature and the `tidb_enable_telemetry` variable had no effect. It was retained solely for compatibility with earlier versions.

Footnotes

  1. The style guide recommends using present tense unless describing historical behavior. Since these lines describe the behavior of past versions, using the past tense is more appropriate. (link)

  2. The style guide requires that code snippets, command names, options, and paths should be enclosed in backticks. (link)

@@ -173,7 +173,7 @@ Compared with the previous LTS 7.5.0, 8.1.0 includes new features, improvements,

| Variable name | Change type | Description |
|--------|------------------------------|------|
| [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402-and-deprecated-in-v810) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB is removed, and this variable is no longer functional. It is retained solely for compatibility with earlier versions. |
| [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB is removed, and this variable is no longer functional. It is retained solely for compatibility with earlier versions. |

Choose a reason for hiding this comment

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

low

To improve clarity and adhere to the style guide's preference for using past tense for historical behavior1, I suggest rephrasing this sentence. Also, the variable name should be enclosed in backticks for consistency2.

Style Guide References

Suggested change
| [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB is removed, and this variable is no longer functional. It is retained solely for compatibility with earlier versions. |
| [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB was removed, and this variable is no longer functional. It is retained solely for compatibility with earlier versions. |

Footnotes

  1. The style guide recommends using present tense unless describing historical behavior. Since these lines describe the behavior of past versions, using the past tense is more appropriate. (link)

  2. The style guide requires that code snippets, command names, options, and paths should be enclosed in backticks. (link)

@@ -182,7 +182,7 @@

| Configuration file | Configuration parameter | Change type | Description |
| -------- | -------- | -------- | -------- |
| TiDB| [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402-and-deprecated-in-v810) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB is removed, and this configuration item is no longer functional. It is retained solely for compatibility with earlier versions. |
| TiDB| [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB is removed, and this configuration item is no longer functional. It is retained solely for compatibility with earlier versions. |

Choose a reason for hiding this comment

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

low

To improve clarity and adhere to the style guide's preference for using past tense for historical behavior1, I suggest rephrasing this sentence.

Style Guide References

Suggested change
| TiDB| [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB is removed, and this configuration item is no longer functional. It is retained solely for compatibility with earlier versions. |
| TiDB| [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402) | Deprecated | Starting from v8.1.0, the telemetry feature in TiDB was removed, and this configuration item is no longer functional. It is retained solely for compatibility with earlier versions. |

Footnotes

  1. The style guide recommends using present tense unless describing historical behavior. Since these lines describe the behavior of past versions, using the past tense is more appropriate. (link)

@@ -198,7 +198,7 @@

* Starting from v8.1.0, the telemetry feature in TiDB and TiDB Dashboard is removed:

* The system variable [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402-and-deprecated-in-v810), the TiDB configuration item [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402-and-deprecated-in-v810), and the PD configuration item [`enable-telemetry`](/pd-configuration-file.md#enable-telemetry) are deprecated and no longer functional.
* The system variable [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402), the TiDB configuration item [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402), and the PD configuration item [`enable-telemetry`](/pd-configuration-file.md#enable-telemetry) are deprecated and no longer functional.

Choose a reason for hiding this comment

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

low

To improve clarity and adhere to the style guide's preference for using past tense for historical behavior1, I suggest rephrasing this sentence.

Style Guide References

Suggested change
* The system variable [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402), the TiDB configuration item [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402), and the PD configuration item [`enable-telemetry`](/pd-configuration-file.md#enable-telemetry) are deprecated and no longer functional.
* The system variable [`tidb_enable_telemetry`](/system-variables.md#tidb_enable_telemetry-new-in-v402), the TiDB configuration item [`enable-telemetry`](/tidb-configuration-file.md#enable-telemetry-new-in-v402), and the PD configuration item [`enable-telemetry`](/pd-configuration-file.md#enable-telemetry) were deprecated and no longer functional.

Footnotes

  1. The style guide recommends using present tense unless describing historical behavior. Since these lines describe the behavior of past versions, using the past tense is more appropriate. (link)


> **Warning:**
>
> Starting from v8.1.0, the telemetry feature in TiDB is removed, and this configuration item is no longer functional. It is retained solely for compatibility with earlier versions.
> - For versions from v8.1.0 to v8.5.1, TiDB removes the telemetry feature and this configuration item no longer takes effect. It is retained solely for compatibility with earlier versions.

Choose a reason for hiding this comment

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

low

To improve clarity and adhere to the style guide's preference for using past tense for historical behavior1, I suggest rephrasing this sentence.

Style Guide References

Suggested change
> - For versions from v8.1.0 to v8.5.1, TiDB removes the telemetry feature and this configuration item no longer takes effect. It is retained solely for compatibility with earlier versions.
> - For versions from v8.1.0 to v8.5.1, TiDB removed the telemetry feature and this configuration item no longer took effect. It was retained solely for compatibility with earlier versions.

Footnotes

  1. The style guide recommends using present tense unless describing historical behavior. Since this line describes the behavior of past versions, using the past tense is more appropriate. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. translation/from-docs-cn This PR is translated from a PR in pingcap/docs-cn. type/compatibility-or-feature-change This PR involves compatibility changes or feature behavior changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant