Do structlog_gcp has any support for context vars? #34
-
I want to add request_id's to my FastAPI application. It's actually like that: |
Beta Was this translation helpful? Give feedback.
Answered by
multani
Sep 21, 2024
Replies: 2 comments
-
@josiasdeveloper can you check #33? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@josiasdeveloper I released https://github.com/multani/structlog-gcp/releases/tag/v0.3.0 which provides context variables support by default. if you configure structlog with: processors = structlog_gcp.build_processors()
structlog.configure(processors=processors) You should have context variables support automatically now. Hope it helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
multani
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@josiasdeveloper I released https://github.com/multani/structlog-gcp/releases/tag/v0.3.0 which provides context variables support by default.
if you configure structlog with:
You should have context variables support automatically now. Hope it helps!