How it works
You can provide a custom redaction function when initializing MCPcat tracking:Key Features
- Recursive Application: Redaction is applied to all string values in event data, including nested objects and arrays
- Protected Fields: Essential analytics fields (like
sessionId,projectId,eventType) are preserved to maintain functionality - Type Preservation: Non-string values (numbers, booleans, dates) are preserved without modification
- Error Handling: If redaction fails, the entire event is skipped to prevent accidental data leakage