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

perf: only capture the call stack if the call is actually async #2471

Merged
merged 3 commits into from
May 31, 2023

Conversation

olavloite
Copy link
Collaborator

Only capture the call stack of a caller of one of the Connection API methods if the top-level call was an async call. For synchronous calls, we do not need to additionally capture the call stack, as any exception will include the current call stack of the synchronous method call.

Only capture the call stack of a caller of one of the Connection API
methods if the top-level call was an async call. For synchronous calls,
we do not need to additionally capture the call stack, as any exception
will include the current call stack of the synchronous method call.
@olavloite olavloite requested a review from rajatbhatta May 30, 2023 16:40
@olavloite olavloite requested a review from a team as a code owner May 30, 2023 16:40
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: spanner Issues related to the googleapis/java-spanner API. labels May 30, 2023
@gcf-owl-bot gcf-owl-bot bot requested a review from a team as a code owner May 30, 2023 16:43
Copy link
Contributor

@rajatbhatta rajatbhatta left a comment

Choose a reason for hiding this comment

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

LGTM, apart from a couple of nits. Thanks for working on this!

@olavloite olavloite added the automerge Merge the pull request once unit tests and other checks pass. label May 31, 2023
@gcf-merge-on-green gcf-merge-on-green bot merged commit ae9c8ad into main May 31, 2023
@gcf-merge-on-green gcf-merge-on-green bot deleted the only-create-async-exception-for-async-calls branch May 31, 2023 12:40
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label May 31, 2023
gcf-merge-on-green bot pushed a commit that referenced this pull request May 31, 2023
🤖 I have created a release *beep* *boop*
---


## [6.42.3](https://togithub.com/googleapis/java-spanner/compare/v6.42.2...v6.42.3) (2023-05-31)


### Performance Improvements

* Only capture the call stack if the call is actually async ([#2471](https://togithub.com/googleapis/java-spanner/issues/2471)) ([ae9c8ad](https://togithub.com/googleapis/java-spanner/commit/ae9c8add484bc0f7808571cbcffb7b352d6ed739))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
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: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants