Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqltelemetry: add CANCEL QUERIES and CANCEL SESSIONS telemetry #46778

Merged
merged 1 commit into from
Apr 17, 2020
Merged

sqltelemetry: add CANCEL QUERIES and CANCEL SESSIONS telemetry #46778

merged 1 commit into from
Apr 17, 2020

Conversation

asubiotto
Copy link
Contributor

Release note: None (internal telemetry change)

Closes #45103

Not sure whether we want to distinguish between CANCEL QUERY vs QUERIES use and CANCEL SESSION vs SESSIONS use (or even how to). So just added one counter for each statement type which is probably good enough.

Tested this manually but holding off on writing tests since I've heard some work will be done on #46730

@asubiotto asubiotto requested a review from a team as a code owner March 31, 2020 08:52
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

LGTM, but should we wait for #46730 to be addressed first?

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @RaduBerinde)

@asubiotto
Copy link
Contributor Author

Yes, I think so.

@asubiotto
Copy link
Contributor Author

Actually I don't think #46730 will be addressed soon so it's probably OK to merge this and add test cases once that goes in similar to #46749 .

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @RaduBerinde)

@asubiotto
Copy link
Contributor Author

bors r=yuzefovich

@asubiotto
Copy link
Contributor Author

bors r=yuzefovich

craig bot pushed a commit that referenced this pull request Apr 3, 2020
46778: sqltelemetry: add CANCEL QUERIES and CANCEL SESSIONS telemetry r=yuzefovich a=asubiotto

Release note: None (internal telemetry change)

Closes #45103

Not sure whether we want to distinguish between CANCEL QUERY vs QUERIES use and CANCEL SESSION vs SESSIONS use (or even how to). So just added one counter for each statement type which is probably good enough.

Tested this manually but holding off on writing tests since I've heard some work will be done on #46730 

Co-authored-by: Alfonso Subiotto Marques <alfonso@cockroachlabs.com>
Release note: None (internal telemetry change)
@asubiotto
Copy link
Contributor Author

Forgot about this one, it seems like bors canceled both times. Rebased and trying again.

bors r=yuzefovich

@craig
Copy link
Contributor

craig bot commented Apr 17, 2020

Build succeeded

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.

Anonymized feature tracking for session cancelation
3 participants