Skip to content

docs: add Structured Logging section to README - #446

Open
afeld wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
afeld:docs/structured-logging
Open

afeld wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
afeld:docs/structured-logging

Conversation

@afeld

@afeld afeld commented Nov 24, 2026 •

Copy link
Copy Markdown

Shows how to attach google-cloud-logging's StructuredLogHandler to the Python root logger so Cloud Run/Cloud Functions log entries get correct severity levels and automatic trace correlation via X-Cloud-Trace-Context. This wasn't obvious to me, so hopefully this will help others.

It would also be helpful to include this on the Cloud Run logging page.

Thanks!

Shows how to attach google-cloud-logging's StructuredLogHandler to the
Python root logger so Cloud Run/Cloud Functions log entries get correct
severity levels and automatic trace correlation via X-Cloud-Trace-Context.

Generated by a bot on behalf of Aidan.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant