Skip to content

Commit

Permalink
Generator now adds client thread and process ids headers
Browse files Browse the repository at this point in the history
This step prepares for the client stack capture support implementation for the proxide proxy. The goal is for proxide to capture the callstacks of the threads of client process when the traffic from the client goes through the proxide. This enables analysis of the client application behavior when unexpected calls pass through the proxy. Functionality will be available when the proxide proxy is on the same host machine as the client.
  • Loading branch information
Fluxie committed Dec 20, 2023
1 parent 0ef3c7b commit 74e9628
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/rust_grpc/src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,7 @@ pub fn get_current_native_thread_id() -> i64
return os_id::thread::get_raw_id() as i64;

#[cfg(target_os = "windows")]
unsafe {return windows::Win32::System::Threading::GetCurrentThreadId() as i64; }
unsafe {
return windows::Win32::System::Threading::GetCurrentThreadId() as i64;
}
}

0 comments on commit 74e9628

Please sign in to comment.