8000 rpc errors only on Python 3.12 · Issue #855 · googleapis/python-logging · GitHub
[go: up one dir, main page]

Skip to content
rpc errors only on Python 3.12 #855
Closed
@efroemling

Description

@efroemling

Recently I started migrating an App Engine app from Python 3.11 to 3.12 and am seeing occasional cloud logging errors in 3.12 related to cloud logging committing batches in the background thread. The errors don't occur in 3.11 and I don't recall seeing them in prior versions either.

Environment details

  • OS type and version: App Engine Standard Environment (which currently seems to be Ubuntu 22.04.3 LTS)
  • Python version: 3.12.1
  • pip version: 23.3.1
  • google-cloud-logging version: 3.9.0

Steps to reproduce

In my case, switching my app-engine service's runtime from python311 to python312 results in these occasional errors. If I go back to Python 3.11 the errors cease.

Code example

The following is the entirety of my logging setup. I'm mostly relying on standard Python log calls but have one or two places where I talk to cloud logging directly in case that could be a culprit.

        # Wire up to handle standard Python logs.
        gc_log_client = google.cloud.logging.Client()
        gc_log_client.setup_logging(log_level=logging.INFO, name='bamaster')

        # Also set up a direct logger (used in a few places only).
        gc_logger_direct = gc_log_client.logger(name='bamaster_direct')

Stack trace

The following are the errors I'm seeing. The stack traces seem to be oddly cut off.
Screenshot 2024-02-15 at 10 31 58 AM

Any ideas what could have changed here between Python 3.11 and 3.12?
Please let me know if there is anything I can do to provide more info on this. Thanks.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/python-logging API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0