fix(tracing-openobserve): use correct parent_span_id field name#78
fix(tracing-openobserve): use correct parent_span_id field name#78yehia2amer wants to merge 1 commit into
Conversation
Replace reference_parent_span_id with parent_span_id in SQL queries and hit parsing. OpenObserve OTLP ingestion stores parent span ID as parent_span_id, not reference_parent_span_id. This fixes "Search field not found: reference_parent_span_id" errors when the tracing adapter queries OpenObserve for trace data. Changes: - queries.go: 2 occurrences in generateTracesListQuery and generateSpansListQuery - client.go: 3 occurrences in hit parsing, removed from internalFields - client_test.go: 14 test fixture updates - handlers_test.go: test fixture updates
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR migrates the OpenObserve integration from using Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.11.4)level=error msg="[linters_context] typechecking error: pattern ./...: directory prefix . does not contain main module or its selected dependencies" 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
LakshanSS
left a comment
There was a problem hiding this comment.
Hi @yehia2amer, welcome to OpenChoreo, and thank you so much for your very first contribution!
We need to use below format to fix the DCO check
git commit -s -m "your message"
Summary
reference_parent_span_idwithparent_span_idin SQL queries and hit parsingparent_span_id, notreference_parent_span_idSearch field not found: reference_parent_span_iderrors when querying tracesChanges
queries.go: 2 SQL query updates (generateTracesListQuery, generateSpansListQuery)client.go: 3 hit-parsing updates + removed from internalFieldsclient_test.go: Updated test fixtureshandlers_test.go: Updated test fixturesTesting
go test ./...passesghcr.io/yehia2amer/observability-tracing-openobserve-adapter:fix-parent-span) — tracing adapter logs clean after fixSummary by CodeRabbit
Bug Fixes
Tests