[Dashboard] Slow SQL Interface: SQL Statements Exceeding 4096 Characters Are Truncated

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 【Dashboard】慢SQL界面,SQL语句超过4096被截断

| username: TiDBer_BBgsLJOO

[TiDB Usage Environment] Production Environment
[TiDB Version] v7.5.1
[Reproduction Path] Configured mtidb_stmt_summary_max_sql_length according to the official documentation, changed from 4096 to 10240, but the issue still persists
[Encountered Issue: Phenomenon and Impact] [Dashboard] On the slow SQL page, SQL statements longer than 4096 characters are truncated
[Resource Configuration] Navigate to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]
Here is the latest slow SQL after modifying the configuration, still truncated at 4096 characters

The variable has been modified, but the long SQL is still truncated

Related official link: 系统变量 | PingCAP 文档中心