(
&self, class_name: &str, function_name: &str,
)
| 182 | impl 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( |
no test coverage detected