(
_: Option<i64>, span: Box<dyn Any>, _: &mut ExecuteData, return_value: &mut ZVal,
)
| 228 | |
| 229 | #[instrument(skip_all)] |
| 230 | fn after_hook( |
| 231 | _: Option<i64>, span: Box<dyn Any>, _: &mut ExecuteData, return_value: &mut ZVal, |
| 232 | ) -> crate::Result<()> { |
| 233 | let mut span = span.downcast::<Span>().expect("Downcast to Span failed"); |
| 234 | |
| 235 | if let Some(b) = return_value.as_bool() { |
| 236 | if !b { |
| 237 | span.span_object_mut().is_error = true; |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | log_exception(&mut *span); |
| 242 | |
| 243 | Ok(()) |
| 244 | } |
| 245 | |
| 246 | fn create_exit_span( |
| 247 | style: ApiStyle, request_id: Option<i64>, class_name: Option<&str>, function_name: &str, |
nothing calls this directly
no test coverage detected