(error: Error, runId: string)
| 184 | |
| 185 | // LLM Error Handler - note: handleLLMError with capital LLM |
| 186 | handleLLMError(error: Error, runId: string) { |
| 187 | const span = spanMap.get(runId); |
| 188 | if (span?.isRecording()) { |
| 189 | span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' }); |
| 190 | exitSpan(runId); |
| 191 | } |
| 192 | |
| 193 | captureException(error, { |
| 194 | mechanism: { |
| 195 | handled: false, |
| 196 | type: `${LANGCHAIN_ORIGIN}.llm_error_handler`, |
| 197 | }, |
| 198 | }); |
| 199 | }, |
| 200 | |
| 201 | // Chain Start Handler |
| 202 | handleChainStart( |
nothing calls this directly
no test coverage detected