MCPcopy
hub / github.com/langchain-ai/langchain / _end_trace

Method _end_trace

libs/core/langchain_core/tracers/base.py:46–51  ·  view source on GitHub ↗

End a trace for a run.

(self, run: Run)

Source from the content-addressed store, hash-verified

44 self._on_run_create(run)
45
46 def _end_trace(self, run: Run) -> None:
47 """End a trace for a run."""
48 if not run.parent_run_id:
49 self._persist_run(run)
50 self.run_map.pop(str(run.id))
51 self._on_run_update(run)
52
53 def on_chat_model_start(
54 self,

Callers 8

on_llm_endMethod · 0.95
on_llm_errorMethod · 0.95
on_chain_endMethod · 0.95
on_chain_errorMethod · 0.95
on_tool_endMethod · 0.95
on_tool_errorMethod · 0.95
on_retriever_errorMethod · 0.95
on_retriever_endMethod · 0.95

Calls 3

_persist_runMethod · 0.95
popMethod · 0.80
_on_run_updateMethod · 0.45

Tested by

no test coverage detected