Skip to content

sql: keep feature detail in plpgsql unimplemented telemetry#171342

Closed
rafiss wants to merge 1 commit into
cockroachdb:masterfrom
rafiss:plpgslq-telemetry-detail
Closed

sql: keep feature detail in plpgsql unimplemented telemetry#171342
rafiss wants to merge 1 commit into
cockroachdb:masterfrom
rafiss:plpgslq-telemetry-detail

Conversation

@rafiss

@rafiss rafiss commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

The plpgsql parser reports syntax-level "unimplemented" errors via the lexer's UnimplementedWithIssue helper, which keys telemetry on the tracking issue number alone (e.g. "#169572"). This drops the per-feature breakdown, so a single issue's hits can no longer be attributed to the specific syntax that produced them.

Switch to unimp.NewWithIssueDetail, mirroring the main SQL parser's UnimplementedWithIssueDetail helper. Each call site passes a short, stable feature identifier as the telemetry detail, so the key becomes "#." (e.g. "#169572.alias for") while still linking to the issue. The rendered error message is unchanged.

Epic: CRDB-63280

Release note: None

The plpgsql parser reports syntax-level "unimplemented" errors via the
lexer's UnimplementedWithIssue helper, which keys telemetry on the
tracking issue number alone (e.g. "cockroachdb#169572"). This drops the per-feature
breakdown, so a single issue's hits can no longer be attributed to the
specific syntax that produced them.

Switch to unimp.NewWithIssueDetail, mirroring the main SQL parser's
UnimplementedWithIssueDetail helper. Each call site passes a short,
stable feature identifier as the telemetry detail, so the key becomes
"#<issue>.<detail>" (e.g. "cockroachdb#169572.alias for") while still linking to
the issue. The rendered error message is unchanged.

Epic: CRDB-63280

Release note: None

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@trunk-io

trunk-io Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Merging to master in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@blathers-crl

blathers-crl Bot commented Jun 2, 2026

Copy link
Copy Markdown

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity

Copy link
Copy Markdown
Member

This change is Reviewable

@rafiss rafiss marked this pull request as ready for review June 2, 2026 13:30
@rafiss rafiss requested a review from a team as a code owner June 2, 2026 13:30
@rafiss rafiss requested review from bghal and spilchen and removed request for a team June 2, 2026 13:30
@rafiss rafiss closed this Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants