-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
🚨This issue needs some love.This issue needs some love.api: loggingIssues related to the googleapis/python-logging API.Issues related to the googleapis/python-logging API.triage meI really want to be triaged.I really want to be triaged.
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.list_entries() seems to hang for ~5 minutes, even just to return a single entry
The profiler says it seems to all be inside {method 'next_event' of 'grpc._cython.cygrpc.SegregatedCall' objects}
ncalls tottime percall cumtime percall filename:lineno(function)
18 290.233 16.124 290.236 16.124 {method 'next_event' of 'grpc._cython.cygrpc.SegregatedCall' objects}
33/32 0.063 0.002 0.066 0.002 {built-in method _imp.create_dynamic}
529 0.043 0.000 0.043 0.000 {built-in method marshal.loads}
1901/1889 0.023 0.000 0.115 0.000 {built-in method builtins.__build_class__}
1166/231 0.018 0.000 0.049 0.000 sre_parse.py:493(_parse)
3802 0.018 0.000 0.018 0.000 {built-in method posix.stat}
Metadata
Metadata
Assignees
Labels
🚨This issue needs some love.This issue needs some love.api: loggingIssues related to the googleapis/python-logging API.Issues related to the googleapis/python-logging API.triage meI really want to be triaged.I really want to be triaged.