Skip to content

Navigation Menu

Sign up

docs: add Structured Logging section to README - #446

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

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

Conversation

@afeld

@afeld afeld commented Nov 24, 2026 •
edited
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /