Skip to content

sqltelemetry: add missing schema telemetry#105482

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
rafiss:add-missing-schema-telemetry
Jun 27, 2023
Merged

sqltelemetry: add missing schema telemetry#105482
craig[bot] merged 1 commit intocockroachdb:masterfrom
rafiss:add-missing-schema-telemetry

Conversation

@rafiss
Copy link
Copy Markdown
Collaborator

@rafiss rafiss commented Jun 24, 2023

CREATE [ SCHEMA | INDEX | FUNCTION | TYPE ] and ALTER FUNCTION did not
have any telemetry, but they should.

Epic: None
Release note: None

@rafiss rafiss requested a review from a team June 24, 2023 04:30
@rafiss rafiss requested a review from a team as a code owner June 24, 2023 04:30
@rafiss rafiss requested a review from a team June 24, 2023 04:30
@rafiss rafiss requested a review from a team as a code owner June 24, 2023 04:30
@rafiss rafiss requested a review from rytaft June 24, 2023 04:30
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@rafiss rafiss added backport-22.2.x backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only labels Jun 24, 2023
@rafiss rafiss force-pushed the add-missing-schema-telemetry branch 2 times, most recently from 30126c0 to 82f8a3e Compare June 26, 2023 13:57
@rafiss rafiss requested review from postamar and removed request for a team and rytaft June 26, 2023 13:57
CREATE [ SCHEMA | INDEX | FUNCTION | TYPE ] and ALTER FUNCTION did not
have any telemetry, but they should.

Release note: None
@rafiss rafiss force-pushed the add-missing-schema-telemetry branch from 82f8a3e to 032a3f7 Compare June 26, 2023 13:58
begin transaction #1
# begin StatementPhase
checking for feature: CREATE INDEX
increment telemetry for sql.schema.create_index
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we also want to bump this counter when creating an index as a side effect of certain ADD COLUMN statements? There are arguments both for and against and ultimately it's up to the consumers of this data to opine. In any case don't let this hold up merging this change, which is a strict improvement over the status quo.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think i'll leave it separate, since those are currently tracked with a call to b.IncrementSchemaChangeAlterCounter

@rafiss
Copy link
Copy Markdown
Collaborator Author

rafiss commented Jun 27, 2023

tftr!

bors r=postamar

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jun 27, 2023

Build succeeded:

@craig craig bot merged commit 45be076 into cockroachdb:master Jun 27, 2023
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Jun 27, 2023

Encountered an error creating backports. Some common things that can go wrong:

  1. The backport branch might have already existed.
  2. There was a merge conflict.
  3. The backport branch contained merge commits.

You might need to create your backport manually using the backport tool.


error creating merge commit from 032a3f7 to blathers/backport-release-22.2-105482: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 22.2.x failed. See errors above.


error creating merge commit from 032a3f7 to blathers/backport-release-23.1-105482: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict []

you may need to manually resolve merge conflicts with the backport tool.

Backport to branch 23.1.x failed. See errors above.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants