MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / exitSpan

Function exitSpan

packages/core/src/tracing/langchain/index.ts:49–55  ·  view source on GitHub ↗
(runId: string)

Source from the content-addressed store, hash-verified

47 * Exit a span and clean up
48 */
49 const exitSpan = (runId: string): void => {
50 const span = spanMap.get(runId);
51 if (span?.isRecording()) {
52 span.end();
53 spanMap.delete(runId);
54 }
55 };
56
57 /**
58 * Handler for LLM Start

Callers 6

handleLLMEndFunction · 0.85
handleLLMErrorFunction · 0.85
handleChainEndFunction · 0.85
handleChainErrorFunction · 0.85
handleToolEndFunction · 0.85
handleToolErrorFunction · 0.85

Calls 4

getMethod · 0.65
isRecordingMethod · 0.65
endMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected