Skip to content

Commit 6864e04

Browse files
authored
Add in a debug stub (#864)
Add in a debug stub. Going to add more over time as needed.
1 parent 43c2425 commit 6864e04

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

modeling-cmds/src/session.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pub struct EngineParams {
2929
/// the session will be written out to this filename.
3030
/// For debugging.
3131
pub replay: Option<String>,
32+
/// API Call ID for distributed tracing
33+
pub api_call_id: Option<String>,
3234
}
3335

3436
impl Default for EngineParams {
@@ -43,6 +45,7 @@ impl Default for EngineParams {
4345
pool: None,
4446
show_grid: false,
4547
replay: None,
48+
api_call_id: None,
4649
}
4750
}
4851
}

modeling-cmds/src/websocket.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ pub enum WebSocketRequest {
9797
metrics: Box<ClientMetrics>,
9898
},
9999

100+
/// Return information about the connected instance
101+
Debug {},
102+
100103
/// Authentication header request.
101104
Headers {
102105
/// The authentication header.
@@ -208,6 +211,12 @@ pub enum OkWebSocketResponseData {
208211

209212
/// Pong response to a Ping message.
210213
Pong {},
214+
215+
/// Information about the connected instance
216+
Debug {
217+
/// Instance name. This may or may not mean something.
218+
name: String,
219+
},
211220
}
212221

213222
/// Successful Websocket response.

0 commit comments

Comments
 (0)