(
execute_data: &mut ExecuteData,
)
| 288 | } |
| 289 | |
| 290 | fn get_function_and_class_name( |
| 291 | execute_data: &mut ExecuteData, |
| 292 | ) -> anyhow::Result<(Option<String>, Option<String>)> { |
| 293 | let function = execute_data.func(); |
| 294 | |
| 295 | let function_name = function |
| 296 | .get_function_name() |
| 297 | .map(ZStr::to_str) |
| 298 | .transpose()? |
| 299 | .map(ToOwned::to_owned); |
| 300 | let class_name = function |
| 301 | .get_class() |
| 302 | .map(|cls| cls.get_name().to_str().map(ToOwned::to_owned)) |
| 303 | .transpose()?; |
| 304 | |
| 305 | Ok((function_name, class_name)) |
| 306 | } |
| 307 | |
| 308 | fn infer_request_id(execute_data: &mut ExecuteData) -> Option<i64> { |
| 309 | if !IS_SWOOLE.load(Ordering::Relaxed) { |
no outgoing calls
no test coverage detected