Class: Hitch::MCP::Internal::EndpointErrorReporter
- Inherits:
-
Object
- Object
- Hitch::MCP::Internal::EndpointErrorReporter
- Defined in:
- app/models/hitch/mcp/internal/endpoint_error_reporter.rb
Overview
Reports an endpoint failure without ever accepting the original exception. Authentication inputs, request bodies, and host state therefore cannot cross this reporting boundary by accident.
Constant Summary collapse
- SOURCE =
"hitch.mcp.endpoint"- CATEGORIES =
{ authentication: "authentication", request_admission: "request_admission", dispatch: "dispatch" }.freeze
Class Method Summary collapse
Class Method Details
.report(category:) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'app/models/hitch/mcp/internal/endpoint_error_reporter.rb', line 18 def report(category:) SanitizedReport.emit( source: SOURCE, message: "Hitch MCP endpoint failed", context: reporting_context(category) ) rescue StandardError, SystemStackError nil end |