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

Method hook

src/plugin/plugin_predis.rs:160–172  ·  view source on GitHub ↗
(
        &self, class_name: Option<&str>, function_name: &str,
    )

Source from the content-addressed store, hash-verified

158 }
159
160 fn hook(
161 &self, class_name: Option<&str>, function_name: &str,
162 ) -> Option<(
163 Box<crate::execute::BeforeExecuteHook>,
164 Box<crate::execute::AfterExecuteHook>,
165 )> {
166 match (class_name, function_name) {
167 (Some(class_name @ "Predis\\Client"), "__call") => {
168 Some(self.hook_predis_execute_command(class_name, function_name))
169 }
170 _ => None,
171 }
172 }
173}
174
175enum ConnectionType {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected