diff --git a/versioned_docs/version-2.0/how_to_guides/tracing/trace_with_langchain.mdx b/versioned_docs/version-2.0/how_to_guides/tracing/trace_with_langchain.mdx index b45d5871..81875c86 100644 --- a/versioned_docs/version-2.0/how_to_guides/tracing/trace_with_langchain.mdx +++ b/versioned_docs/version-2.0/how_to_guides/tracing/trace_with_langchain.mdx @@ -223,59 +223,6 @@ await chain.invoke({ input: "What is the meaning of life?" }, { runId: myUuid }) Note that if you do this at the **root** of a trace (i.e., the top-level run, that run ID will be used as the `trace_id`). -## Access run (span) ID for LangChain invocations - -When you invoke a LangChain object, you can access the run ID of the invocation. This run ID can be used to query the run in LangSmith. - -In Python, you can use the `collect_runs` context manager to access the run ID. - -In JS/TS, you can use a `RunCollectorCallbackHandler` instance to access the run ID. - - ## Ensure all traces are submitted before exiting @@ -329,9 +276,9 @@ This largely builds off of the [previous section](#trace-selectively).