Skip to content

Conversation

chickenlj
Copy link
Contributor

@chickenlj chickenlj commented Jul 31, 2023

merge feature-metrics branch into master

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
1.5% 1.5% Duplication

@codecov-commenter
Copy link

Codecov Report

Merging #2367 (413c894) into main (cd76e0f) will decrease coverage by 0.52%.
The diff coverage is 9.76%.

@@            Coverage Diff             @@
##             main    #2367      +/-   ##
==========================================
- Coverage   44.81%   44.30%   -0.52%     
==========================================
  Files         299      304       +5     
  Lines       18270    18528     +258     
==========================================
+ Hits         8188     8209      +21     
- Misses       9224     9457     +233     
- Partials      858      862       +4     
Files Changed Coverage Δ
common/host_util.go 70.37% <0.00%> (-29.63%) ⬇️
config/config_center_config.go 14.15% <0.00%> (-0.14%) ⬇️
config_center/nacos/listener.go 0.00% <0.00%> (ø)
metrics/api.go 0.00% <0.00%> (ø)
metrics/common.go 0.00% <0.00%> (ø)
metrics/reporter.go 0.00% <ø> (ø)
registry/base_registry.go 1.39% <0.00%> (-0.02%) ⬇️
...try/servicediscovery/service_discovery_registry.go 0.95% <0.00%> (-0.04%) ⬇️
metrics/prometheus/registry.go 1.17% <1.17%> (ø)
config/instance/metadata_report.go 64.70% <50.00%> (-5.89%) ⬇️
... and 4 more

... and 4 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ev1lQuark
Copy link
Contributor

LGTM.

@FinalT
Copy link
Member

FinalT commented Aug 4, 2023

LGTM.

@FoghostCn
Copy link
Contributor

LGTM

@@ -31,6 +32,7 @@ import (
)

var localIp string
Copy link
Contributor

Choose a reason for hiding this comment

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

如果有多个 var 写在一块,要写成

“ var (
)”

这种形式

"dubbo.apache.org/dubbo-go/v3/metrics/util/aggregate"
)

var registries = make(map[string]func(*ReporterConfig) MetricRegistry)
Copy link
Contributor

Choose a reason for hiding this comment

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

放在一个 var () 里面。

@chickenlj chickenlj merged commit 8b43135 into main Aug 4, 2023
@chickenlj chickenlj deleted the feature-metrics branch August 4, 2023 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants