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

Function after_hook

src/plugin/plugin_memcache.rs:230–244  ·  view source on GitHub ↗
(
    _: Option<i64>, span: Box<dyn Any>, _: &mut ExecuteData, return_value: &mut ZVal,
)

Source from the content-addressed store, hash-verified

228
229#[instrument(skip_all)]
230fn 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
246fn create_exit_span(
247 style: ApiStyle, request_id: Option<i64>, class_name: Option<&str>, function_name: &str,

Callers

nothing calls this directly

Calls 1

log_exceptionFunction · 0.85

Tested by

no test coverage detected