Skip to main content
Mem0 provides a smart memory layer for AI applications, enabling personalized interactions by remembering user preferences, conversation history, and context across sessions.

Why Track Mem0 with AgentOps?

When building memory-powered AI applications, you need visibility into:
  • Memory Operations: Track when memories are created, updated, or retrieved
  • Search Performance: Monitor how effectively your AI finds relevant memories
  • Memory Usage Patterns: Understand what information is being stored and accessed
  • Error Tracking: Identify issues with memory storage or retrieval
  • Cost Analysis: Track API calls to both Mem0 and your LLM provider
AgentOps automatically instruments Mem0 to provide complete observability of your memory operations.

Installation

Environment Configuration

Load environment variables and set up API keys. The MEM0_API_KEY is only required if you’re using the cloud-based MemoryClient.

Tracking Memory Operations

What You’ll See in AgentOps

When using Mem0 with AgentOps, your dashboard will show:
  1. Memory Operation Timeline: Visual flow of all memory operations
  2. Search Analytics: Query patterns and retrieval effectiveness
  3. Memory Growth: Track how user memories accumulate over time
  4. Performance Metrics: Latency for adds, searches, and retrievals
  5. Error Tracking: Failed operations with full error context
  6. Cost Attribution: Token usage for memory extraction and searches

Examples

Memory Operations

Simple example showing memory storage and retrieval with AgentOps tracking

MemoryClient Operations

Track concurrent memory operations with async/await patterns