From c6d7c80a99108704440ff819e7d7219fd69c8a39 Mon Sep 17 00:00:00 2001 From: Andrew Nguonly Date: Thu, 9 Jan 2025 13:24:41 -0800 Subject: [PATCH] docs: Add documentation for `LANGSMITH_RUNS_ENDPOINTS` env var (#2976) --- docs/docs/cloud/reference/env_var.md | 8 ++++++++ docs/docs/concepts/bring_your_own_cloud.md | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/docs/cloud/reference/env_var.md b/docs/docs/cloud/reference/env_var.md index 8f0c4c641..009b3a64f 100644 --- a/docs/docs/cloud/reference/env_var.md +++ b/docs/docs/cloud/reference/env_var.md @@ -14,6 +14,14 @@ Type of authentication for the LangGraph Cloud Server deployment. Valid values: For deployments to LangGraph Cloud, this environment variable is set automatically. For local development or deployments where authentication is handled externally (e.g. self-hosted), set this environment variable to `noop`. +## `LANGSMITH_RUNS_ENDPOINTS` + +For [Bring Your Own Cloud (BYOC)](../../concepts/bring_your_own_cloud.md) deployments with [self-hosted LangSmith](https://docs.smith.langchain.com/self_hosting) only. + +Set this environment variable to have a BYOC deployment send traces to a self-hosted LangSmith instance. The value of `LANGSMITH_RUNS_ENDPOINTS` is a JSON string: `{"":""}`. + +`SELF_HOSTED_LANGSMITH_HOSTNAME` is the hostname of the self-hosted LangSmith instance. It must be accessible to the BYOC deployment. `LANGSMITH_API_KEY` is a LangSmith API generated from the self-hosted LangSmith instance. + ## `N_JOBS_PER_WORKER` Number of jobs per worker for the LangGraph Cloud task queue. Defaults to `10`. diff --git a/docs/docs/concepts/bring_your_own_cloud.md b/docs/docs/concepts/bring_your_own_cloud.md index ce7684692..76cfd1833 100644 --- a/docs/docs/concepts/bring_your_own_cloud.md +++ b/docs/docs/concepts/bring_your_own_cloud.md @@ -51,5 +51,5 @@ LangChain has no direct access to the resources created in your cloud account, a Notes for customers using [self-hosted LangSmith](https://docs.smith.langchain.com/self_hosting): -- Creation of new LangGraph Cloud projects and revisions currently needs to be done on smith.langchain.com. -- You can however set up the project to trace to your self-hosted LangSmith instance if desired +- Creation of new LangGraph Cloud projects and revisions currently needs to be done on `smith.langchain.com`. +- However, you can set up the project to trace to your self-hosted LangSmith instance if desired. See details for [`LANGSMITH_RUNS_ENDPOINTS` environment variable](../cloud/reference/env_var.md#langsmith_runs_endpoints).