Spaces:
Running
Running
Deploy 3d635b97
Browse files- main.py +1 -1
- observability.py +2 -2
main.py
CHANGED
|
@@ -61,7 +61,7 @@ def _init_observability() -> None:
|
|
| 61 |
or os.environ.get("LANGCHAIN_API_KEY")
|
| 62 |
or _kr.get_password(_svc, "langsmith_api_key")
|
| 63 |
)
|
| 64 |
-
if ls_key
|
| 65 |
ls_project = (
|
| 66 |
os.environ.get("LANGSMITH_PROJECT")
|
| 67 |
or os.environ.get("LANGCHAIN_PROJECT")
|
|
|
|
| 61 |
or os.environ.get("LANGCHAIN_API_KEY")
|
| 62 |
or _kr.get_password(_svc, "langsmith_api_key")
|
| 63 |
)
|
| 64 |
+
if ls_key:
|
| 65 |
ls_project = (
|
| 66 |
os.environ.get("LANGSMITH_PROJECT")
|
| 67 |
or os.environ.get("LANGCHAIN_PROJECT")
|
observability.py
CHANGED
|
@@ -5,8 +5,8 @@ Provides a single-entry-point module for all tracing, cost tracking,
|
|
| 5 |
metadata attribution, health checks, and alerting concerns.
|
| 6 |
|
| 7 |
Backends
|
| 8 |
-
--------
|
| 9 |
-
|
| 10 |
env vars. LangGraph/LangChain reads these at import time and starts
|
| 11 |
tracing without any per-call code.
|
| 12 |
* **Langfuse** — explicit ``CallbackHandler`` instantiated only when
|
|
|
|
| 5 |
metadata attribution, health checks, and alerting concerns.
|
| 6 |
|
| 7 |
Backends
|
| 8 |
+
-------- * **LangSmith** — automatic via ``LANGSMITH_API_KEY`` / ``LANGSMITH_PROJECT``
|
| 9 |
+
* (also accepts legacy ``LANGCHAIN_API_KEY`` for back-compat)
|
| 10 |
env vars. LangGraph/LangChain reads these at import time and starts
|
| 11 |
tracing without any per-call code.
|
| 12 |
* **Langfuse** — explicit ``CallbackHandler`` instantiated only when
|