Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): pass log kwargs via extra for workflow.logger (#60254)

Daniel RCe5e5245d0373
diff --git a/posthog/temporal/data_imports/external_data_job.py b/posthog/temporal/data_imports/external_data_job.py
index 81f2923c961d..9fe723aac195 100644
--- a/posthog/temporal/data_imports/external_data_job.py
+++ b/posthog/temporal/data_imports/external_data_job.py
@@ -378,8 +378,10 @@ class ExternalDataJobWorkflow(PostHogWorkflow):
if skip_post_import_activities:
workflow.logger.info(
"Skipping post-import activities for externally managed schema",
- schema_id=str(inputs.external_data_schema_id),
- source_id=str(inputs.external_data_source_id),
+ extra={
+ "schema_id": str(inputs.external_data_schema_id),
+ "source_id": str(inputs.external_data_source_id),
+ },
)
return
@@ -439,7 +441,7 @@ class ExternalDataJobWorkflow(PostHogWorkflow):
except WorkflowAlreadyStartedError:
workflow.logger.warning(
"DuckLake copy already running, skipping",
- schema_id=str(inputs.external_data_schema_id),
+ extra={"schema_id": str(inputs.external_data_schema_id)},
)
except exceptions.ActivityError as e: