LCORE-1794: Add OpenTelemetry spans to conversation v1 and v2 endpoints - #2475
LCORE-1794: Add OpenTelemetry spans to conversation v1 and v2 endpoints#2475anik120 wants to merge 1 commit into
Conversation
- Add coarse-grained OpenTelemetry spans to all 8 conversation endpoint handlers (4 in v1, 4 in v2) - Each handler emits a single span with operation-level metadata: conversation count (list), turn count and found flag (get), deleted flag (delete), updated flag (update) - All attributes are low-cardinality — no raw conversation IDs or user-derived free text in span attributes - Errors are auto-captured via start_as_current_span context manager setting StatusCode.ERROR Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (19)
🧰 Additional context used📓 Path-based instructions (3)**/*📄 CodeRabbit inference engine (Custom checks)
Files:
src/**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
tests/unit/**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (4)📚 Learning: 2026-04-06T20:18:07.852ZApplied to files:
📚 Learning: 2026-06-24T13:45:37.249ZApplied to files:
📚 Learning: 2026-07-06T15:26:18.398ZApplied to files:
📚 Learning: 2026-07-17T19:25:05.325ZApplied to files:
🔇 Additional comments (5)
WalkthroughConversation v1 and v2 endpoints now emit OpenTelemetry spans for list, get, delete, and update operations. Spans record operation results and error status. Unit tests cover successful and failing paths. ChangesConversation endpoint tracing
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to The change adds localized telemetry to conversation endpoints without any identified merge-blocking correctness or production risk. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 7✅ Passed checks (7 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Type of change
pyproject.toml+uv.lock]requirements.*.txtfor Konflux]Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit
Enhancements
Tests