Skip to content

[WIP] feat: use structlog for structured logging#1206

Draft
hrodmn wants to merge 1 commit intomainfrom
feat/structlog
Draft

[WIP] feat: use structlog for structured logging#1206
hrodmn wants to merge 1 commit intomainfrom
feat/structlog

Conversation

@hrodmn
Copy link
Copy Markdown
Contributor

@hrodmn hrodmn commented Aug 25, 2025

The integrations between FastAPI + OpenTelemetry and structlog are not as clean as with the standard logging library, but it is possible.

This setup is working for me except for the "request completed successfully" logging statement in the LoggingMiddleware which is not attached to a trace.

Resolves #1190

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.

switch to structured logging

1 participant