Skip to content

sql: refactor SQL stats colllection to its own self-contained package #65699

@Azhng

Description

@Azhng

Currently, our SQL statistics code is heavily intertwined with sq.Server, connExecutor and couple other major components. This makes testing and adding new features difficult.

We should create a clear boundary by refactoring stats collection code into its own package and expose well-defined Golang interfaces. This also will pave the way for us to add persisted SQL stats later.

Metadata

Metadata

Assignees

Labels

A-sql-cli-observabilityIssues related to surfacing SQL observability in SHOW, CRDB_INTERNAL, SYSTEM, etc.C-cleanupTech debt, refactors, loose ends, etc. Solution not expected to significantly change behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions