diff --git a/docs/observability/how_to_guides/trace_with_langchain.mdx b/docs/observability/how_to_guides/trace_with_langchain.mdx index 3eaec851..423c7de0 100644 --- a/docs/observability/how_to_guides/trace_with_langchain.mdx +++ b/docs/observability/how_to_guides/trace_with_langchain.mdx @@ -273,7 +273,7 @@ console.log(runId);`), ## Ensure all traces are submitted before exiting -In LangChain Python, LangSmith's tracing is done in a background thread to avoid obstructing your production application. This means that your process may end before all traces are successfully posted to LangSmith. This is especially prevalent in a serverless environment, where your VM may be terminated immediately once your chain or agent completes. +In LangChain, LangSmith's tracing is done in a background thread to avoid obstructing your production application. This means that your process may end before all traces are successfully posted to LangSmith. This is especially prevalent in a serverless environment, where your VM may be terminated immediately once your chain or agent completes. You can make callbacks synchronous by setting the `LANGCHAIN_CALLBACKS_BACKGROUND` environment variable to `"false"`.