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

Method hook_memcached_empty_methods

src/plugin/plugin_memcached.rs:184–202  ·  view source on GitHub ↗
(
        &self, class_name: &str, function_name: &str,
    )

Source from the content-addressed store, hash-verified

182impl MemcachedPlugin {
183 #[instrument(skip_all)]
184 fn hook_memcached_empty_methods(
185 &self, class_name: &str, function_name: &str,
186 ) -> (Box<BeforeExecuteHook>, Box<AfterExecuteHook>) {
187 let class_name = class_name.to_owned();
188 let function_name = function_name.to_owned();
189 (
190 Box::new(move |request_id, _| {
191 let tag_info = MEMCACHE_EMPTY_METHOD_MAPPING
192 .get(&*function_name.to_ascii_lowercase())
193 .unwrap();
194
195 let span =
196 create_exit_span(request_id, &class_name, &function_name, "", tag_info, None)?;
197
198 Ok(Box::new(span))
199 }),
200 Box::new(after_hook),
201 )
202 }
203
204 #[instrument(skip_all)]
205 fn hook_memcached_key_methods(

Callers 1

hookMethod · 0.80

Calls 1

create_exit_spanFunction · 0.70

Tested by

no test coverage detected