Skip to content
This repository was archived by the owner on Apr 30, 2026. It is now read-only.

Commit aa7d021

Browse files
authored
also add span context on proxy runs (#14)
Co-authored-by: akhatre <akhatre@users.noreply.github.com>
1 parent a9a5244 commit aa7d021

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

overmind/langchain/callbacks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def on_chain_end(self, outputs, *, run_id, **kwargs):
113113
self.run_spans[run_id].set_attribute(
114114
"policy_results", serialize(outputs.pop("policy_results"))
115115
)
116+
117+
if "span_context" in outputs:
116118
# can't add links to the span that has been started and there is no clean way to pass
117119
# this span to the backend at the layer run time (since it happening in a downstream node)
118120
self.run_spans[run_id].set_attribute(

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 = "overmind"
3-
version = "0.1.13"
3+
version = "0.1.14"
44
description = "Python client for Overmind API"
55
authors = ["Overmind Ltd"]
66
readme = "README.md"

0 commit comments

Comments
 (0)