diff --git a/samples/github-helper-agent/README.md b/samples/github-helper-agent/README.md index 01ea7ea..3326a88 100644 --- a/samples/github-helper-agent/README.md +++ b/samples/github-helper-agent/README.md @@ -18,7 +18,7 @@ The agent consists of three main components: The agent responds to the following commands: -- Reviewer: `/help suggest`, `/help review`, `/help test` +- Reviewer: `/help summarize`, `/help suggest`, `/help review`, `/help test` - Developer: `/help commit` (commits the latest suggestion/review/tests) ## Architecture diff --git a/src/uipath_mcp/_cli/_runtime/_tracer.py b/src/uipath_mcp/_cli/_runtime/_tracer.py index 2457277..ed2c7a4 100644 --- a/src/uipath_mcp/_cli/_runtime/_tracer.py +++ b/src/uipath_mcp/_cli/_runtime/_tracer.py @@ -62,7 +62,9 @@ def create_span_for_message(self, message: types.JSONRPCMessage, **context) -> S span.set_attribute("span_type", "MCP error") span.set_attribute("id", str(root_value.id)) span.set_attribute("error_code", root_value.error.code) - span.set_attribute("error_message", root_value.error.message) + span.set_attribute("error", root_value.error.message) + span.set_status(StatusCode.ERROR) + # Remove the request from active tracking self._active_request_spans.pop(request_id, None) @@ -99,7 +101,8 @@ def create_span_for_message(self, message: types.JSONRPCMessage, **context) -> S span.set_attribute("span_type", "MCP error") span.set_attribute("id", str(root_value.id)) span.set_attribute("error_code", root_value.error.code) - span.set_attribute("error_message", root_value.error.message) + span.set_attribute("error", root_value.error.message) + span.set_status(StatusCode.ERROR) else: span = self._tracer.start_span("unknown") span.set_attribute("span_type", str(type(root_value).__name__))