You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop-docs/sdk/expected-features/mcp-instrumentation/errors.mdx
+29-6Lines changed: 29 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ MCP Server error instrumentation ensures that all errors occurring within the Mo
10
10
-**Comprehensive context:** Errors are always associated with the active Sentry span, so you get full context (method, tool, arguments, etc.) in Sentry.
11
11
-**Categorized errors:** Errors are tagged by type (e.g., `validation`, `timeout`, `tool_execution`, `resource_operation`, `prompt_execution`, `transport`, etc.) for easy filtering and analysis in Sentry.
12
12
-**Handler wrapping:** All MCP server handlers (`tool`, `resource`, `prompt`) are wrapped to ensure errors are captured and correlated with the correct request span.
13
-
13
+
-**Span status tracking:** When errors occur, the active span status is automatically set to error for better trace correlation.
14
14
15
15
## Safe Error Capture
16
16
@@ -19,14 +19,31 @@ The core utility is an error capture function:
0 commit comments