LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithindexRunTree
Class●Since v0.0

RunTree

A run can represent either a trace (root run) or a child run (~span).

Copy
class RunTree

Used in Docs

  • Custom instrumentation
  • Implement distributed tracing
  • Log LLM calls
  • Log traces to a specific project
  • Messages view integrations

Constructors

Properties

Methods

View source on GitHub
constructor
constructor
property
attachments: Attachments
property
child_execution_order: number
property
child_runs: RunTree[]
property
client: Client
property
distributedParentId: string
property
dotted_order: string
property
end_time: number
property
error: string
property
events: KVMap[]
property
execution_order: number
property
extra: KVMap
property
id: string
property
inputs: KVMap
property
name: string
property
outputs: KVMap
property
parent_run: RunTree
property
parent_run_id: string
property
project_name: string
property
reference_example_id: string
property
replicas: WriteReplica[]
property
run_type: string
property
serialized: object
property
start_time: number
property
tags: string[]
property
trace_id: string
property
tracingEnabled: boolean
property
metadata
method
addEvent
method
createChild
method
end
method
patchRun
method
postRun
method
toHeaders
method
toJSON
method
fromDottedOrder
method
fromHeaders
method
fromRunnableConfig
method
getSharedClient