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

Function get_function_and_class_name

src/execute.rs:290–306  ·  view source on GitHub ↗
(
    execute_data: &mut ExecuteData,
)

Source from the content-addressed store, hash-verified

288}
289
290fn 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
308fn infer_request_id(execute_data: &mut ExecuteData) -> Option<i64> {
309 if !IS_SWOOLE.load(Ordering::Relaxed) {

Callers 5

execute_internalFunction · 0.85
execute_exFunction · 0.85
observer_handlerFunction · 0.85
observer_beginFunction · 0.85
observer_endFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected