MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / capture_function_usage

Function capture_function_usage

scrapegraphai/telemetry/telemetry.py:195–203  ·  view source on GitHub ↗
(call_fn: Callable)

Source from the content-addressed store, hash-verified

193
194
195def 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected