-
Notifications
You must be signed in to change notification settings - Fork 37
update langfuse deployment, configure logging #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update langfuse deployment, configure logging #463
Conversation
This comment has been minimized.
This comment has been minimized.
911e7d9 to
810a2a7
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
Tested this, now in runner logs: |
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
Implements privacy-preserving Langfuse tracing that redacts user messages and assistant responses while preserving usage metrics for cost tracking. Privacy Controls: - Default: MASK messages (privacy-first) - Set LANGFUSE_MASK_MESSAGES=false to disable (dev/testing only) What Gets Logged (with masking enabled): ✅ Token counts (input, output, cache read/creation) ✅ Cost calculations (USD per session) ✅ Model names, turn counts, session metadata ✅ Tool names and execution status ❌ User prompts → [REDACTED FOR PRIVACY] ❌ Assistant responses → [REDACTED FOR PRIVACY] ❌ Long tool outputs → [REDACTED FOR PRIVACY] This addresses the requirement to track usage metrics without logging potentially sensitive user data. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
810a2a7 to
8eb65e1
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This comment was marked as outdated.
This comment was marked as outdated.
91c0a41 to
6dc6fb6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: sallyom <somalley@redhat.com>
6dc6fb6 to
411cf2b
Compare
Claude Code ReviewSummaryThis PR adds privacy-first message masking to Langfuse observability and optimizes ClickHouse deployment to prevent disk space issues. The implementation is well-designed and production-ready with comprehensive test coverage and excellent documentation. Overall Assessment: ✅ APPROVE with minor suggestions The privacy masking implementation follows security best practices with secure-by-default behavior, and the ClickHouse optimization addresses a real operational issue. The code quality is excellent with thorough testing and documentation. Issues by Severity🟢 No Blocker or Critical Issues FoundThis PR is ready to merge. All patterns follow established project standards. 🟡 Major IssuesNone - code quality is excellent. 🔵 Minor Issues / Suggestions1. Shell Script Robustness (Minor)File: Issue: Line 112 uses Suggestion: Consider more explicit error handling to distinguish between expected "table does not exist" errors and real failures Impact: Low - current approach works but could be more robust 2. Documentation Clarity (Very Minor)File: Observation: The privacy controls section states "Masking is ENABLED BY DEFAULT" but then shows how to set Suggestion: Consider rewording to make it clearer that setting the variable explicitly is optional Impact: Very Low - documentation is already clear Positive Highlights🌟 Excellent Privacy-First Design
🧪 Outstanding Test Coverage
📚 Production-Ready Documentation
🛡️ Follows Security Standards
🔧 Operational Excellence
✅ Code Quality
RecommendationsPriority 1: Merge as-is ✅The PR is production-ready and addresses important privacy and operational concerns. All patterns follow established project standards. Priority 2: Consider Minor Enhancements (Optional)
Priority 3: Post-Merge Monitoring
Architecture Alignment✅ Follows Backend/Operator Standards: Proper error handling, secure-by-default, no sensitive data in logs ✅ Follows Python Standards: Black formatting, clear function signatures, comprehensive docstrings ✅ Follows Security Standards: Privacy-first design, token/credential masking, secure defaults ✅ Follows Testing Standards: Added test to runner-tests.yml workflow, comprehensive coverage Final VerdictStatus: ✅ APPROVED This is exemplary work that demonstrates:
The minor suggestions above are enhancements, not blockers. The PR is ready to merge and will provide immediate value by protecting user privacy and preventing operational issues. Great work, @sallyom! 🎉 🔍 View AI decision process (logs available for 90 days) 📋 View memory system files loaded (click to expand)What Amber Loaded for Code ReviewAmber automatically loaded these repository standards from the memory system:
Impact: This review used your repository's specific code quality standards, security patterns, and best practices from the memory system (PRs #359, #360) - not just generic code review guidelines. |
The helm values file to configure log retention isn't working. This PR adds a post-install script to configure langfuse logging to avoid langfuse-clickhouse PVC from filling with logs we don't need or want to retain. --------- Signed-off-by: sallyom <somalley@redhat.com> Co-authored-by: Claude <noreply@anthropic.com>

The helm values file to configure log retention isn't working. This PR adds a post-install script to configure langfuse logging to avoid langfuse-clickhouse PVC from filling with logs we don't need or want to retain.