I like this solution, I had tinkered with the Otel hoping to get un-redacted prompt and responses but had no luck. Did you perhaps get deeper into what data was useful?
Disclaimer - I work at Anthropic but not on Claude Code, the team is responsive via GH issues though!
[0] https://docs.anthropic.com/en/docs/claude-code/monitoring-us...