dsh-sentry-telemetry
v1.0.3
Published
Sentry error and trace telemetry for DeepSeek Harness Host and Web Client
Readme
dsh-sentry-telemetry
Dual-face (Host + Web Client) Sentry error & distributed trace telemetry plugin for DeepSeek Harness.
Features
- Host Error Capture across Containment Boundaries:
- Hooks
ctx.logger.exporter(ERRORlevel) to capture Cordis plugin lifecycle, effect, and server errors with originalErrorstacks. - Listens to
agent/error,api-session/error,agent-loop/config-start-failed, andagent/request-errorto capture LLM and Agent Loop failures swallowed by driver boundaries. - Observes
tools/resultandtools/executeto report tool execution errors (isError: true). - Hooks
typertGatewayinvocation failure path and process-leveluncaughtException/unhandledRejectionwith bounded flush before exit.
- Hooks
- Client Error Capture across Containment Boundaries:
- Subscribes to
ctx.slots.onEntryErrorto capture React component crashes caught and isolated bySlotErrorBoundaryandFactoryErrorBoundary. - Hooks Client
ctx.logger.exporter(ERRORlevel) and browser global unhandled errors/rejections. - Observes
ctx.connection.rpc.callto reportgateway/internaland transport failures.
- Subscribes to
- End-to-End Distributed Tracing:
- Propagates
sentry-traceandbaggageheaders from Client RPC calls (rpc.client) to Hostconnection/requestwaterfall (http.server). - Creates structured spans for Agent turns (
gen_ai.turn), steps (gen_ai.step), LLM streaming calls (gen_ai.chatwith token usage attributes), and tool executions (gen_ai.tool).
- Propagates
- Live DSN Configuration:
- Configure
dsn, optionalclientDsn,environment,tracesSampleRate, and capture switches directly in the Plugins settings page (cordis.patch.ymlvolatile config).
- Configure
