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.
Replies: 2 comments
-
@josiasdeveloper can you check #33? |
Beta Was this translation helpful? Give feedback.
-
@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.
@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!