Skip to content

Commit 8f43bbc

Browse files
skoob13Twixes
andauthored
feat(llm-observability): LangChain spans (#176)
* feat: refactor to dataclasses * feat: spans * test: fix part 1 * test: fix part 2 * test: fix part 3 * test: fix part n * test: add langgraph agent test * chore: bump and linters * chore: bump * fix: correctly capture a parent id when a custom trace_id is set * test: multiple spans parent_ids * fix: exception serialization * refactor: ai_trace_name -> ai_span_name and ai_generation_id -> ai_span_id * fix: logs typos * Add minor breaking change note to changelog * fix: naming --------- Co-authored-by: Michael Matloka <[email protected]>
1 parent eb07aaf commit 8f43bbc

File tree

4 files changed

+802
-399
lines changed

4 files changed

+802
-399
lines changed

CHANGELOG.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
## 3.11.0 - 2025-01-27
1+
## 3.11.0 - 2025-01-28
22

3-
1. Fix serialiazation of Pydantic models in methods.
3+
1. Add the `$ai_span` event to the LangChain callback handler to capture the input and output of intermediary chains.
4+
> LLM observability naming change: event property `$ai_trace_name` is now `$ai_span_name`.
5+
6+
2. Fix serialiazation of Pydantic models in methods.
47

58
## 3.10.0 - 2025-01-24
69

710
1. Add `$ai_error` and `$ai_is_error` properties to LangChain callback handler, OpenAI, and Anthropic.
811

12+
## 3.9.3 - 2025-01-23
13+
14+
1. Fix capturing of multiple traces in the LangChain callback handler.
15+
916
## 3.9.2 - 2025-01-22
1017

1118
1. Fix importing of LangChain callback handler under certain circumstances.

0 commit comments

Comments
 (0)