[ISSUE #8084]♻️Route core service entries through unified telemetry bootstrap#8085
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughController, NameServer, and Proxy bootstrap binaries are refactored to install a unified telemetry logging bootstrap via ChangesUnified telemetry bootstrap across bootstrap binaries
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant CLI
participant Bootstrap as run()
participant Telemetry as TelemetryBootstrap
participant Service as ServiceRuntime
CLI->>Bootstrap: parse config / CLI args
Bootstrap->>Bootstrap: validate ROCKETMQ_HOME (bail! on error)
Bootstrap->>Telemetry: build config + install_global()
Telemetry-->>Bootstrap: telemetry guard
Bootstrap->>Service: start (run_controller / boot / serve_with_shutdown)
Service-->>Bootstrap: runtime result / ctrl-c signal
Bootstrap->>Service: shutdown()
Bootstrap->>Telemetry: shutdown guard
Telemetry-->>Bootstrap: shutdown result
Bootstrap-->>CLI: combined Result
Possibly related issues
Possibly related PRs
Suggested labels: Suggested reviewers: Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
🔊@mxsm 🚀Thanks for your contribution🎉! 💡CodeRabbit(AI) will review your code first🔥! Note 🚨The code review suggestions from CodeRabbit are to be used as a reference only, and the PR submitter can decide whether to make changes based on their own judgment. Ultimately, the project management personnel will conduct the final code review💥. |
Which Issue(s) This PR Fixes(Closes)
Brief Description
This PR routes the NameServer, Proxy, and Controller binary entries through the unified telemetry logging bootstrap.
Changes include:
TelemetryBootstrapConfigvalues for NameServer, Proxy, and Controller.How Did You Test This Change?
cargo fmt --allpassed.cargo test -p rocketmq-namesrv --all-featurespassed.cargo test -p rocketmq-controller --all-featurespassed.cargo test -p rocketmq-proxy --bin rocketmq-proxy-rust --all-featurespassed.cargo clippy --workspace --no-deps --all-targets --all-features -- -D warningspassed with a clean C-drive temporary target directory.cargo test -p rocketmq-proxy --all-featureswas also run, but it fails in existing auth and ACL library tests unrelated to this PR. The failure was reproduced on cleanmainwithcargo test -p rocketmq-proxy auth::tests::map_authorization_error_preserves_proxy_error_category --all-features.Summary by CodeRabbit
New Features
Bug Fixes