MCPcopy Create free account
hub / github.com/apache/skywalking-php / after_hook

Function after_hook

src/plugin/plugin_redis.rs:356–369  ·  view source on GitHub ↗
(
    _request_id: Option<i64>, span: Box<dyn Any>, _execute_data: &mut ExecuteData,
    _return_value: &mut ZVal,
)

Source from the content-addressed store, hash-verified

354}
355
356fn after_hook(
357 _request_id: Option<i64>, span: Box<dyn Any>, _execute_data: &mut ExecuteData,
358 _return_value: &mut ZVal,
359) -> crate::Result<()> {
360 if span.downcast_ref::<()>().is_some() {
361 return Ok(());
362 }
363
364 let mut span = span.downcast::<Span>().unwrap();
365
366 log_exception(&mut *span);
367
368 Ok(())
369}

Callers

nothing calls this directly

Calls 1

log_exceptionFunction · 0.85

Tested by

no test coverage detected