(
state: &Arc<ServerState>,
request: Request<CreateSandboxRequest>,
)
| 59 | // --------------------------------------------------------------------------- |
| 60 | |
| 61 | pub(super) async fn handle_create_sandbox( |
| 62 | state: &Arc<ServerState>, |
| 63 | request: Request<CreateSandboxRequest>, |
| 64 | ) -> Result<Response<SandboxResponse>, Status> { |
| 65 | let create_request = request.get_ref().clone(); |
| 66 | let result = handle_create_sandbox_inner(state, request).await; |
| 67 | emit_sandbox_create_telemetry( |
| 68 | state, |
| 69 | &create_request, |
| 70 | TelemetryOutcome::from_success(result.is_ok()), |
| 71 | ); |
| 72 | result |
| 73 | } |
| 74 | |
| 75 | fn emit_sandbox_create_telemetry( |
| 76 | state: &Arc<ServerState>, |
no test coverage detected