We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e6b0b commit bc900a1Copy full SHA for bc900a1
1 file changed
agent/telemetry.py
@@ -26,19 +26,18 @@ async def async_wrapper(*args, **kwargs):
26
statsd.histogram("tool.execution.duration", duration, tags=tags)
27
28
return result
29
- except Exception as e:
+ except Exception:
30
duration = time.time() - start_time
31
32
# Track failed tool usage
33
tags = [
34
f"tool_name:{tool_name}",
35
- f"error_type:{type(e).__name__}",
36
]
37
statsd.increment("tool.errors.count", tags=tags)
38
39
40
- logging.error(
41
- f"Error in tool: {tool_name} with input {args} and kwargs {kwargs}: {e}"
+ logging.exception(
+ f"Error in tool: {tool_name} with input {args} and kwargs {kwargs}"
42
)
43
return f"ERROR: Failed to execute tool {tool_name}."
44
0 commit comments