Skip to content

Commit ed12c62

Browse files
authored
Add request_id when executing KCL (#1258)
This will help correlate errors with engine logs.
1 parent d946481 commit ed12c62

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

modeling-cmds/openapi/api.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10001,6 +10001,11 @@
1000110001
}
1000210002
]
1000310003
},
10004+
"request_id": {
10005+
"description": "ID for this request.",
10006+
"type": "string",
10007+
"format": "uuid"
10008+
},
1000410009
"type": {
1000510010
"type": "string",
1000610011
"enum": [
@@ -10010,6 +10015,7 @@
1001010015
},
1001110016
"required": [
1001210017
"project",
10018+
"request_id",
1001310019
"type"
1001410020
]
1001510021
}

modeling-cmds/src/websocket.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ pub enum WebSocketRequest {
113113

114114
/// Execute a KCL project.
115115
ExecKclProject {
116+
/// ID for this request.
117+
request_id: Uuid,
116118
/// The KCL project to execute.
117119
project: crate::exec_kcl::KclProject,
118120
},

0 commit comments

Comments
 (0)