From be4bf6ca956b225b8bac613af793d0b15fe83009 Mon Sep 17 00:00:00 2001 From: Morgan Wowk Date: Fri, 13 Feb 2026 14:41:41 -0800 Subject: [PATCH] Fix contextual logging import to use absolute path Changed the import in structured_logging.py from relative to absolute to ensure that the same contextual_logging module instance is used across all imports. This fixes an issue where context metadata set in one module was not visible in another due to separate module instances having separate ContextVar objects. This ensures LoggingContextFilter and contextual_logging.logging_context share the same _context_metadata ContextVar, allowing contextual data like container_execution_id and execution_node_ids to appear in logs. Co-authored-by: Cursor --- cloud_pipelines_backend/instrumentation/structured_logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud_pipelines_backend/instrumentation/structured_logging.py b/cloud_pipelines_backend/instrumentation/structured_logging.py index 572d53e..0f8020b 100644 --- a/cloud_pipelines_backend/instrumentation/structured_logging.py +++ b/cloud_pipelines_backend/instrumentation/structured_logging.py @@ -6,7 +6,7 @@ import logging -from . import contextual_logging +from cloud_pipelines_backend.instrumentation import contextual_logging class LoggingContextFilter(logging.Filter):