Skip to content

Conversation

@daniel-sanche
Copy link
Contributor

This PR adds a new grpc interceptor to the client, to be used for metrics collection. Currently, the interceptor is a no-op. Interception logic will be added in a future change.

@daniel-sanche daniel-sanche requested review from a team as code owners September 9, 2025 20:57
@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Sep 9, 2025
@product-auto-label product-auto-label bot added the api: bigtable Issues related to the googleapis/python-bigtable API. label Sep 9, 2025
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 30, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 30, 2025
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 1, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 1, 2025
chalmerlowe
chalmerlowe previously approved these changes Oct 7, 2025
Copy link

@chalmerlowe chalmerlowe left a comment

Choose a reason for hiding this comment

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

I am approving, pending:

  • See the #QUESTIONs and determine whether any changes need to be made, if no, then carry on.
  • See the #PREFERENCEs and #NITs and see if there is merit to including them. If no, then carry on.

row_key = b"bulk_mutate"
new_value = uuid.uuid4().hex.encode()
row_key, mutation = self._create_row_and_mutation(
(row_key, mutation) = self._create_row_and_mutation(

Choose a reason for hiding this comment

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

#PREFERENCE

Why are we encapsulating all of these values in parens? To the best of my knowledge, this is not required by either PEP 8 or the Google Python Style Guide nor have I heard it referred to as a best practice. I don't see any other examples of this practice anywhere else in this codebase.

Feels unnecessary. I recommend ditching them unless we have a really good reason to add them.

Suggested change
(row_key, mutation) = self._create_row_and_mutation(
row_key, mutation = self._create_row_and_mutation(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code auto-generated, so this wasn't a conscious choice. Something must have changed in how black is post processing the generated code.

It feels unnecessary to me too, but it doesn't bother me enough to fight with the generation system to change it back

@daniel-sanche daniel-sanche enabled auto-merge (squash) November 19, 2025 22:44
Copy link

@chalmerlowe chalmerlowe left a comment

Choose a reason for hiding this comment

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

LGTM

@daniel-sanche daniel-sanche merged commit 6561cfa into main Nov 20, 2025
34 checks passed
@daniel-sanche daniel-sanche deleted the csm_interceptor branch November 20, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/python-bigtable API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants