Skip to content

Commit 2189419

Browse files
authored
Hide metadata in update_run (#1711)
1 parent 084b132 commit 2189419

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

python/langsmith/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from langsmith.utils import ContextThreadPoolExecutor
2121

2222
# Avoid calling into importlib on every call to __version__
23-
__version__ = "0.3.40"
23+
__version__ = "0.3.41"
2424
version = __version__ # for backwards compatibility
2525

2626

python/langsmith/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,6 +2164,8 @@ def update_run(
21642164
data["events"] = events
21652165
if data["extra"]:
21662166
self._insert_runtime_env([data])
2167+
if metadata := data["extra"].get("metadata"):
2168+
data["extra"]["metadata"] = self._hide_run_metadata(metadata)
21672169

21682170
if self._pyo3_client is not None:
21692171
self._pyo3_client.update_run(data)

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langsmith"
3-
version = "0.3.40"
3+
version = "0.3.41"
44
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
55
authors = ["LangChain <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)