Skip to content

Commit a751111

Browse files
committed
add tracing feature to streamlit apps
1 parent 34cece6 commit a751111

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
PROJECT_NAME=template-langgraph
77

88
## LangSmith Settings
9+
LANGSMITH_TRACING="false" # Options: "true", "false"
910
LANGSMITH_API_KEY="lsv2_xxx"
1011

1112
# ---------

docs/references.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
- [Jaeger / Minimal deployment example (Elasticsearch backend)](https://www.jaegertracing.io/docs/1.72/deployment/#minimal-deployment-example-elasticsearch-backend)
5050
- [Prometheus](https://prometheus.io/)
5151
- [Prometheus / Getting Started](https://prometheus.io/docs/prometheus/latest/getting_started/)
52+
- [Trace with LangGraph](https://docs.langchain.com/langsmith/trace-with-langgraph)
5253

5354
### n8n
5455

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
import streamlit as st
2+
from dotenv import load_dotenv
23

4+
load_dotenv(
5+
override=True,
6+
verbose=True,
7+
)
38
st.title("template-streamlit")
49
st.info("Select a code sample from the sidebar to run it")

0 commit comments

Comments
 (0)