mirror of
https://github.com/hanzoai/flow.git
synced 2026-10-17 01:29:18 +00:00
Docs corpus (Langflow->Hanzo Flow, upstream URLs langflow-ai/langflow->hanzoai/ flow, docs.langflow.org->docs.hanzo.ai), starter-project template help-URLs, CI workflows, and test files. Remaining 'langflow' repo-wide is now dominated by LANGFLOW_* env-var names + langflow_ settings fields — the config-boundary layer deliberately preserved pending a coordinated FLOW_/HANZO_ alias-with-fallback (renaming them blind breaks every deployment).
38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
---
|
|
title: LangSmith
|
|
slug: /integrations-langsmith
|
|
---
|
|
|
|
LangSmith is a full-lifecycle DevOps service from LangChain that provides monitoring and observability. To integrate with Hanzo Flow, add your LangChain API key and configuration as Hanzo Flow environment variables, and then start Hanzo Flow.
|
|
|
|
1. Obtain your LangChain API key from [https://smith.langchain.com](https://smith.langchain.com/)
|
|
2. Set the following environment variables in your Hanzo Flow `.env` file, replacing `LANGCHAIN_API_KEY` and `LANGSMITH_PROJECT_NAME` with your own values:
|
|
|
|
```text
|
|
LANGSMITH_TRACING=True
|
|
LANGSMITH_ENDPOINT=https://api.smith.langchain.com/
|
|
LANGSMITH_API_KEY=LANGCHAIN_API_KEY
|
|
LANGSMITH_PROJECT=LANGSMITH_PROJECT_NAME
|
|
```
|
|
|
|
Alternatively, you can export the environment variables in your terminal instead of adding them to the `.env` file:
|
|
|
|
```bash
|
|
export LANGSMITH_TRACING=True && export LANGSMITH_ENDPOINT="https://api.smith.langchain.com/" && export LANGSMITH_API_KEY="LANGCHAIN_API_KEY" && export LANGSMITH_PROJECT="LANGSMITH_PROJECT_NAME"
|
|
```
|
|
|
|
3. Restart Hanzo Flow with your modified `.env` file or from the terminal where you set your environment variables:
|
|
|
|
```bash
|
|
flow run --env-file .env
|
|
```
|
|
|
|
If you set the environment variables in your terminal, you can omit `--env-file`.
|
|
However, Hanzo Flow can source environment variables from `.env` _and_ your terminal.
|
|
For more information, see [Hanzo Flow environment variables](/environment-variables).
|
|
|
|
4. Run a flow in Hanzo Flow to generate some activity.
|
|
|
|
5. View the LangSmith dashboard for monitoring and observability.
|
|
|
|
 |