8000 sql,obs: metrics / logs that break down SQL errors by group or type · Issue #122686 · cockroachdb/cockroach · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
sql,obs: metrics / logs that break down SQL errors by group or type #122686
Open
@nicktrav

Description

@nicktrav

Is your feature request related to a problem? Please describe.

Currently, when investigating SQL errors, it is difficult to determine the types of errors being returned to the client, without diving deep into debug.zip internals.

We already have a SQL Statement Errors chart on the SQL dashboard of the DB Console. However, it only shows a total. This makes it hard to deduce the class of errors.

Describe the solution you'd like

Ideally, we'd be able to easily tell the class of errors that are being returned to the SQL client. This could be metrics, or logs.

The latter could be very verbose / expensive. Perhaps these could be gated behind a vmodule / sampling.

Having metrics per error code would also be pretty noisy. Maybe we can bucket different error codes together.

Additional context

This came up in the context of https://github.com/cockroachlabs/support/issues/2869.

Another (internal) thread.

Jira issue: CRDB-38026

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-sql-console-generalSQL Observability issues on the DB console spanning multiple areas. Includes Cockroach Cloud ConsoleA-sql-observabilityRelated to observability of the SQL layerC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.O-supportWould prevent or help troubleshoot a customer escalation - bugs, missing observability/tooling, docsP-3Issues/test failures with no fix SLAT-sql-foundationsSQL Foundations Team (formerly SQL Schema + SQL Sessions)

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0