Problem Statement
structlog logs can be sent to Sentry via the existing LoggingIntegration; however, this does not preserve the structuring of the logs (e.g. if the logs have custom attributes set, these are included in the log message). See this example
Solution Brainstorm
Instead, create a dedicated structlog integration, which would add these logs to the log event as custom attributes.
Problem Statement
structloglogs can be sent to Sentry via the existingLoggingIntegration; however, this does not preserve the structuring of the logs (e.g. if the logs have custom attributes set, these are included in the log message). See this exampleSolution Brainstorm
Instead, create a dedicated
structlogintegration, which would add these logs to the log event as custom attributes.