add observer_cruise_id to SkyvernContext and logs (#1469)

This commit is contained in:
Shuchang Zheng
2025-01-02 12:49:48 -08:00
committed by GitHub
parent 3835f3ce69
commit b9d3228f77
3 changed files with 7 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ def add_kv_pairs_to_msg(logger: logging.Logger, method_name: str, event_dict: Ev
event_dict["workflow_id"] = context.workflow_id
if context.workflow_run_id:
event_dict["workflow_run_id"] = context.workflow_run_id
if context.observer_cruise_id:
event_dict["observer_cruise_id"] = context.observer_cruise_id
# Add env to the log
event_dict["env"] = settings.ENV