Commit 8f43bbc
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- posthog
- ai/langchain
- test/ai/langchain
4 files changed
+802
-399
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
0 commit comments