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

fix: always add instance-id for built-in metrics #3612

Merged
merged 3 commits into from
Jan 27, 2025

Conversation

olavloite
Copy link
Collaborator

The instance-id was only added for built-in metrics when the headers of the request was sent. This meant that any request that would NOT get sent would not include an instance-id, which again would cause the export of ALL built-in metrics to stop. This would happen because the metric without an instance-id would remain in the collected metrics.

A request would get into this state if the client ran into a network issue that would prevent the client from making a network connection to Spanner.

Fixes #3611

The instance-id was only added for built-in metrics when the headers
of the request was sent. This meant that any request that would NOT
get sent would not include an instance-id, which again would cause
the export of ALL built-in metrics to stop. This would happen because
the metric without an instance-id would remain in the collected metrics.

A request would get into this state if the client ran into a network
issue that would prevent the client from making a network connection
to Spanner.

Fixes #3611
@olavloite olavloite requested a review from a team as a code owner January 26, 2025 12:26
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Jan 26, 2025
@cloud-java-bot cloud-java-bot requested a review from a team as a code owner January 26, 2025 12:32
@olavloite olavloite merged commit 705b627 into main Jan 27, 2025
34 checks passed
@olavloite olavloite deleted the include-instance-id-before-headers branch January 27, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Built-in metrics fail to export due to instance_id missing after executing a request that would not get sent
3 participants