Skip to content

Commit bc900a1

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
err
1 parent 28e6b0b commit bc900a1

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

agent/telemetry.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,18 @@ async def async_wrapper(*args, **kwargs):
2626
statsd.histogram("tool.execution.duration", duration, tags=tags)
2727

2828
return result
29-
except Exception as e:
29+
except Exception:
3030
duration = time.time() - start_time
3131

3232
# Track failed tool usage
3333
tags = [
3434
f"tool_name:{tool_name}",
35-
f"error_type:{type(e).__name__}",
3635
]
3736
statsd.increment("tool.errors.count", tags=tags)
3837
statsd.histogram("tool.execution.duration", duration, tags=tags)
3938

40-
logging.error(
41-
f"Error in tool: {tool_name} with input {args} and kwargs {kwargs}: {e}"
39+
logging.exception(
40+
f"Error in tool: {tool_name} with input {args} and kwargs {kwargs}"
4241
)
4342
return f"ERROR: Failed to execute tool {tool_name}."
4443

0 commit comments

Comments
 (0)