Title: list_logs hangs · Issue #71 · googleapis/python-logging · GitHub
Open Graph Title: list_logs hangs · Issue #71 · googleapis/python-logging
X Title: list_logs hangs · Issue #71 · googleapis/python-logging
Description: The README gives a sample for how to list logs off of GCP: from google.cloud import logging client = logging.Client() logger = client.logger('log_name') for entry in logger.list_entries(): print(entry.payload) Running this code, logger.l...
Open Graph Description: The README gives a sample for how to list logs off of GCP: from google.cloud import logging client = logging.Client() logger = client.logger('log_name') for entry in logger.list_entries(): print(en...
X Description: The README gives a sample for how to list logs off of GCP: from google.cloud import logging client = logging.Client() logger = client.logger('log_name') for entry in logger.list_entries(): ...
Opengraph URL: https://github.com/googleapis/python-logging/issues/71
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"list_logs hangs","articleBody":"The README gives a sample for how to list logs off of GCP:\r\n\r\n```\r\nfrom google.cloud import logging\r\nclient = logging.Client()\r\nlogger = client.logger('log_name')\r\nfor entry in logger.list_entries():\r\n print(entry.payload)\r\n```\r\n\r\nRunning this code, `logger.list_entries()` seems to hang for ~5 minutes, even just to return a single entry\r\n\r\nThe profiler says it seems to all be inside ` {method 'next_event' of 'grpc._cython.cygrpc.SegregatedCall' objects}`\r\n\r\n```\r\n ncalls tottime percall cumtime percall filename:lineno(function)\r\n 18 290.233 16.124 290.236 16.124 {method 'next_event' of 'grpc._cython.cygrpc.SegregatedCall' objects}\r\n 33/32 0.063 0.002 0.066 0.002 {built-in method _imp.create_dynamic}\r\n 529 0.043 0.000 0.043 0.000 {built-in method marshal.loads}\r\n1901/1889 0.023 0.000 0.115 0.000 {built-in method builtins.__build_class__}\r\n 1166/231 0.018 0.000 0.049 0.000 sre_parse.py:493(_parse)\r\n 3802 0.018 0.000 0.018 0.000 {built-in method posix.stat}\r\n\r\n```","author":{"url":"https://github.com/daniel-sanche","@type":"Person","name":"daniel-sanche"},"datePublished":"2020-10-14T16:49:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/71/python-logging/issues/71"}
| 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:d1b2ffdf-3985-6b71-f966-146dd55ccc7a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1AC:50FD4:2BA78BB:3BF1464:6A4F06C7 |
| html-safe-nonce | 500a4e965589e0d45aeb0aa776d5add0e848a08d5014f7219ac078672c1b3875 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUFDOjUwRkQ0OjJCQTc4QkI6M0JGMTQ2NDo2QTRGMDZDNyIsInZpc2l0b3JfaWQiOiI2OTIwOTk5NTMwNTAzNTM4Mzc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 09efbcf7efb1a1db83db5189846ba980fbb88d0c068b0960be5e703a002d748d |
| hovercard-subject-tag | issue:721621519 |
| 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/71/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3d5347f722629e7452eafc206db2b5cd6f149792aacac62b62f21748a4ccf077/googleapis/python-logging/issues/71 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3d5347f722629e7452eafc206db2b5cd6f149792aacac62b62f21748a4ccf077/googleapis/python-logging/issues/71 |
| og:image:alt | The README gives a sample for how to list logs off of GCP: from google.cloud import logging client = logging.Client() logger = client.logger('log_name') for entry in logger.list_entries(): print(en... |
| 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 | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width