Skip to content

Conversation

Kaikaikaifang
Copy link
Member

Description

  1. 引入 gRPC 官方提供的健康检查服务 (Health)
  2. 初始化数据上报服务 (Collector),实现一个简单 Upload 方法,允许上报键值对列表

@Kaikaikaifang Kaikaikaifang changed the base branch from main to feature/core June 11, 2025 10:13
@Kaikaikaifang Kaikaikaifang self-assigned this Jun 11, 2025
@Kaikaikaifang Kaikaikaifang added the 💪 enhancement New feature or request label Jun 11, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the health check functionality and introduces a new collector upload service. Key changes include:

  • Removal of the deprecated gRPC health check proto and corresponding Go implementations.
  • Addition of new proto definitions and generated code for the collector service.
  • Updating service registration in the main application to use the official gRPC health check server and the new collector service.

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
swanlab/proto/core/health/v1/health_service.proto Updated health check proto with new package and additional RPC methods (Check, List, Watch) and removed deprecated Python stubs.
swanlab/proto/core/collector/v1/* Introduced new proto, Python stubs, and Go generated files for the collector service.
script/build_proto.py Updated build script to generate collector service protos instead of health service protos.
core/internal/service/* Removed health service implementation and added new collector service implementation.
core/cmd/core/core.go Refactored service registration to use grpc_health and register the collector service.
core/go.mod Updated dependency order with explicit golang.org/x/net dependency.

@Kaikaikaifang Kaikaikaifang changed the title Feature/health check feat: impl health checker and init data collector Jun 11, 2025
@SAKURA-CAT SAKURA-CAT merged commit 0b6ff45 into feature/core Jun 12, 2025
11 checks passed
@SAKURA-CAT SAKURA-CAT deleted the feature/health-check branch June 12, 2025 03:47
SAKURA-CAT added a commit that referenced this pull request Jun 15, 2025
* feat: init go project (#1064)

* fix: license use symlink (#1067)

* Feature/protobuf: hello-word (#1074)

* feat: init go project (#1064)

* feat: add proto and grpc

* feat: add proto build script

* fix: golangci lint

* feat: support auto or specify select port

* chore: license

* chore: add .golangci.yml

* fix: use log/slog instead of log

* chore: del core vendor

---------

Co-authored-by: Kang Li <79990647+SAKURA-CAT@users.noreply.github.com>

* feat: impl health checker and init data collector (#1077)

* feat: impl health checker and init data collector

* chore: change module name

---------

Co-authored-by: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com>

* Feat/record proto and column parser (#1091)

Co-authored-by: kaikai <2837968358@qq.com>

* fix: import module and typo

---------

Co-authored-by: Kaikai <98205900+Kaikaikaifang@users.noreply.github.com>
Co-authored-by: kaikai <2837968358@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants