LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithuuidcompute_run_id_for_secondary_replica
Function●Since v0.10

compute_run_id_for_secondary_replica

Copy
compute_run_id_for_secondary_replica(
  run_id: _uuid.UUID | str,
  project_name: str
) -> _uuid.UUID

Used in Docs

  • Log traces to a specific project
View source on GitHub

Parameters

NameTypeDescription
run_id*_uuid.UUID | str

The original UUID v7 run ID.

project_name*str

The secondary replica's destination project name.

Compute the run ID used for a secondary tracing replica.