Title: API differences between HTTP and gRPC implementations · Issue #154 · googleapis/python-logging · GitHub
Open Graph Title: API differences between HTTP and gRPC implementations · Issue #154 · googleapis/python-logging
X Title: API differences between HTTP and gRPC implementations · Issue #154 · googleapis/python-logging
Description: We have two methods of interacting with the API backend: gRPC (default) and HTTP (used when client is created with google.cloud.logging.Client(_use_grpc=0) or DISABLE_GRPC is set). This is implemented using two _*API implementations: One...
Open Graph Description: We have two methods of interacting with the API backend: gRPC (default) and HTTP (used when client is created with google.cloud.logging.Client(_use_grpc=0) or DISABLE_GRPC is set). This is implemen...
X Description: We have two methods of interacting with the API backend: gRPC (default) and HTTP (used when client is created with google.cloud.logging.Client(_use_grpc=0) or DISABLE_GRPC is set). This is implemen...
Opengraph URL: https://github.com/googleapis/python-logging/issues/154
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"API differences between HTTP and gRPC implementations","articleBody":"We have two methods of interacting with the API backend: gRPC (default) and HTTP (used when client is created with `google.cloud.logging.Client(_use_grpc=0)` or `DISABLE_GRPC` is set).\r\n\r\nThis is implemented using two _*API implementations: One in [_http.py](https://github.com/googleapis/python-logging/blob/ff90fd2fb54c612fe6ab29708a2d5d984f60dea7/google/cloud/logging_v2/_http.py) and the other in [_gapic.py](https://github.com/googleapis/python-logging/blob/master/google/cloud/logging_v2/_gapic.py). It looks like in some cases, they return different values (_http returns a page iterator object directly, while _gapic often converts it to a generator. This confuses users who expect high-level APIs to act consistently regardless of the implementation used.\r\n\r\nI suggest we refactor _http.py to be consistent with _gapic.py, and add tests to make sure they act consistently","author":{"url":"https://github.com/daniel-sanche","@type":"Person","name":"daniel-sanche"},"datePublished":"2021-01-13T19:38:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/154/python-logging/issues/154"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:908c8267-7c8f-2b34-1342-033d729592ae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 900E:C8AE2:8D3E109:C5D2BA2:6A508725 |
| html-safe-nonce | a97e0cad3e885dd7831f42591e77c12be24952b70f1d29a21996a482a8dac073 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDBFOkM4QUUyOjhEM0UxMDk6QzVEMkJBMjo2QTUwODcyNSIsInZpc2l0b3JfaWQiOiIxNDIyMzc5MDU3MjMyNzc0OTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6248a8fdc2c421454b61dbd2d7b4bedb01baad7382594b2098d7903d1691440e |
| hovercard-subject-tag | issue:785388410 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-logging/154/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f067323ee655d7c3ab6c06afe0f0540c2e06871dfe9344eb2624bbbb22e4d30/googleapis/python-logging/issues/154 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f067323ee655d7c3ab6c06afe0f0540c2e06871dfe9344eb2624bbbb22e4d30/googleapis/python-logging/issues/154 |
| og:image:alt | We have two methods of interacting with the API backend: gRPC (default) and HTTP (used when client is created with google.cloud.logging.Client(_use_grpc=0) or DISABLE_GRPC is set). This is implemen... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daniel-sanche |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-logging git https://github.com/googleapis/python-logging.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992562 |
| octolytics-dimension-repository_nwo | googleapis/python-logging |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992562 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-logging |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width