Repository navigation
feat(llmobs): add first-class memory span kind and agent memory instrumentation - #22119
FouadWahabi wants to merge 4 commits into
Conversation
…mentation Add zero-drop agent memory tracing via LLMObs.memory(), @memory, and LLMObs.annotate(memory=...) with bounded metadata, SHA-256 identifier/content hashing, and flat underscore metrics, plus auto-instrumentation for LangGraph BaseStore and native memory_* tool calls.
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 4f20838 | Docs | View more details | Give us feedback! |
BenchmarksBenchmark execution time: 2026-11-26 13:34:25 Comparing candidate commit 4f20838 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 21 metrics, 0 unstable metrics.
|
…ions Emit span_kind="memory" for child memory spans instead of overloading retrieval, tool, or task (keeping "workflow" for standalone root spans), and support both output.documents on reads and output.value on mutations.
Adds first-class agent memory observability to
ddtrace.llmobsusing a dedicatedmemoryspan kind (withworkflowfor standalone roots) and raw text confined to span I/O for SDS scrubbing.LLMObs.memory(),@memorydecorator (sync/async/generators), andLLMObs.annotate(memory=...)withMemoryRecord/MemoryAnnotationTypedDictsmemoryspan kind supporting bothoutput.documentson reads andoutput.valueon mutationsmeta.metadata.memoryschema with SHA-256 hashed principals/tenants/content hashes and flat underscorememory_*metricsBaseStore(put/get/search/delete+ async variants) and nativememory_*tool callstests/llmobs/test_memory.py,langgraph 1.2.24, SDK v2.14)