You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
create_memory_telemetry() emits OpenTelemetry GenAI memory-operation spans (create_memory, update_memory, upsert_memory, delete_memory, search_memory, create_memory_store, delete_memory_store). Each operation optionally wraps a sync or async execute callable — capturing latency, errors, and status — or emits a completed span. It sets gen_ai.operation.name and the gen_ai.memory.* attributes, stamps Latitude context, and maps a search result to the records it returned.
Content is opt-in via capture_content (off by default) and covers both record bodies (gen_ai.memory.records) and the search query (gen_ai.memory.query.text), with a redact hook to scrub records before they are sent.
MEMORY_ATTRIBUTES and MEMORY_OPERATIONS constants are exported for raw OpenTelemetry instrumentation.