(call_fn: Callable)
| 193 | |
| 194 | |
| 195 | def capture_function_usage(call_fn: Callable) -> Callable: |
| 196 | @functools.wraps(call_fn) |
| 197 | def wrapped_fn(*args, **kwargs): |
| 198 | try: |
| 199 | return call_fn(*args, **kwargs) |
| 200 | finally: |
| 201 | if is_telemetry_enabled(): |
| 202 | log_event("function_usage", {"function_name": call_fn.__name__}) |
| 203 | return wrapped_fn |
nothing calls this directly
no outgoing calls
no test coverage detected