Repository navigation
Go: tracing framework - #17004
Go: tracing framework#17004
Conversation
Signed-off-by: Jin Hai <[email protected]>
Signed-off-by: Jin Hai <[email protected]>
Signed-off-by: Jin Hai <[email protected]>
Signed-off-by: Jin Hai <[email protected]>
Signed-off-by: Jin Hai <[email protected]>
Signed-off-by: Jin Hai <[email protected]>
Signed-off-by: Jin Hai <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PR updates EE server lifecycle signatures and callers, changes EE route initialization order, upgrades Go dependencies, and relocates the Jaeger service definition in the base Docker Compose file. ChangesEE integration
Dependency updates
Compose service reordering
Estimated code review effort: 3 (Moderate) | ~15 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
internal/server/server_ee.go (1)
32-52: 🩺 Stability & Availability | 🟠 Major | 🏗️ Heavy liftWire the EE lifecycle through or remove the stub.
StartServer/ShutdownServerignorectxandserverName, andnewEEServernever initializestracerProvider, so the EE path still performs no tracing or shutdown work. Either thread these values into the implementation or drop the unused API surface.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@internal/server/server_ee.go` around lines 32 - 52, Implement the EE lifecycle in StartServer and ShutdownServer instead of leaving the stub: use ctx and serverName to perform the intended start, tracing, and shutdown operations through EEServer, and initialize tracerProvider in newEEServer as required. If no implementation is available, remove the unused lifecycle API and related fields rather than retaining no-op methods.
🧹 Nitpick comments (1)
cmd/ragflow_server.go (1)
372-377: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick winUse a bounded shutdown context.
context.Background()is never canceled or deadline-bound, yet it is passed to deferred shutdown. If EE or tracer teardown blocks, process shutdown can hang indefinitely. Derive a timeout context specifically forShutdownServerand handle its returned error.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@cmd/ragflow_server.go` around lines 372 - 377, Update the shutdown flow around server.StartServer and server.ShutdownServer to derive a bounded timeout context specifically for deferred teardown instead of reusing context.Background(). Ensure the deferred shutdown invokes ShutdownServer with that timeout context and handles/logs its returned error, while preserving the existing startup error handling.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docker/docker-compose-base.yml`:
- Around line 253-267: Remove the duplicate jaeger service definition later in
the Compose file, preserving only the shown jaeger service block and its
existing configuration.
---
Outside diff comments:
In `@internal/server/server_ee.go`:
- Around line 32-52: Implement the EE lifecycle in StartServer and
ShutdownServer instead of leaving the stub: use ctx and serverName to perform
the intended start, tracing, and shutdown operations through EEServer, and
initialize tracerProvider in newEEServer as required. If no implementation is
available, remove the unused lifecycle API and related fields rather than
retaining no-op methods.
---
Nitpick comments:
In `@cmd/ragflow_server.go`:
- Around line 372-377: Update the shutdown flow around server.StartServer and
server.ShutdownServer to derive a bounded timeout context specifically for
deferred teardown instead of reusing context.Background(). Ensure the deferred
shutdown invokes ShutdownServer with that timeout context and handles/logs its
returned error, while preserving the existing startup error handling.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: c1192e2e-c238-4b21-b7c1-5391f02cd178
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (8)
cmd/ragflow_server.godocker/docker-compose-base.ymlgo.modinternal/admin/router.gointernal/admin/router_ee.gointernal/router/router.gointernal/router/router_ee.gointernal/server/server_ee.go
💤 Files with no reviewable changes (2)
- internal/admin/router.go
- internal/router/router.go
Signed-off-by: Jin Hai <[email protected]>
Signed-off-by: Jin Hai <[email protected]>
Summary
Tracing framework