Uh oh!
There was an error while loading. Please reload this page.
Add gccl metrics header to Spanner. - #3045
Conversation
| class _Client(object): | ||
| pass | ||
| def __init__(self, *args, **kwargs): | ||
| pass |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| class _Client(object): | ||
| pass | ||
| def __init__(self, *args, **kwargs): | ||
| pass |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tseaver
commented
Feb 21, 2017
The PR should also be rebased against current |
1f06db0 to
a8169f2Compare| import pkg_resources | ||
| __version__ = pkg_resources.get_distribution('google-cloud-spanner').version |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| if self._spanner_api is None: | ||
| self._spanner_api = SpannerClient() | ||
| self._spanner_api = SpannerClient(lib_name='gccl', | ||
| lib_version=__version__) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| setup( | ||
| name='google-cloud-spanner', | ||
| version='0.23.1', | ||
| version='0.23.2', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| def test_admin_api_lib_name(self): | ||
| """Establish that the lib_name and lib_version are passed to | ||
| the database and instance API objects in the GAPIC. | ||
| """ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| pass | ||
| def __init__(self, *args, **kwargs): | ||
| self.args = args | ||
| self.kwargs = kwargs |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| expected_scopes = None | ||
| self._constructor_test_helper(expected_scopes, creds) | ||
| def test_admin_api_lib_name(self): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ad8590a to
87b2c55Comparelukesneeringer
commented
Feb 21, 2017
Travis seems to be hung? Anyone know if I can do anything about this? |
daspecster
commented
Feb 21, 2017
@lukesneeringer there isn't anything you can do about Travis AFAICT. CircleCI should have covered it though so you should be clear to merge anyway in this case. |
lukesneeringer
commented
Feb 21, 2017
Okay, merging once @tseaver gives assent. |
| def _mock_spanner_client(): | ||
| def _mock_spanner_client(*args, **kwargs): | ||
| self.assertIsInstance(args, (list, tuple)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
dhermes
commented
Feb 22, 2017
LGTM |
tseaver
commented
Feb 22, 2017
@lukesneeringer FWIW, your docstring-in-a-testcase here will be literally the only one in the whole codebase. If you feel that strongly about it, go ahead and merge. |
lukesneeringer
commented
Feb 22, 2017
I went ahead and removed it. |
This PR adds the
gccl/x.y.zportion of the metrics header in the Spanner client library.