TiDB will record `StmtReset` and `StmtClose` as the statement latency
Open
severity/minor
sig/sql-infra
type/bug
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
TiDB will record `StmtReset` and `StmtClose` as the statement latency, so the latency metrics are usually smaller than the real value. Maybe we should only analyze the `StmtExecute` for `PREPARE/EXECUTE` protocol.
Contributor guide
Assessment
This issue has not been assessed yet.