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
JavaScriptlangsmithindexcomputeRunIdForSecondaryReplica
Function●Since v0.10

computeRunIdForSecondaryReplica

Compute the run ID used for a secondary tracing replica.

Copy
computeRunIdForSecondaryReplica(runId: string, projectName: string): string

Used in Docs

  • Log traces to a specific project

Parameters

NameTypeDescription
runId*string

The original UUID v7 run ID.

projectName*string

The secondary replica's destination project name.

View source on GitHub