-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add: interface of Metadata report #405
Conversation
# Conflicts: # cluster/directory/base_directory.go # common/constant/env.go # common/constant/key.go # config_center/dynamic_configuration.go # go.mod # registry/directory/directory.go
add healthcheck router
if zkJar not exist,it will download it.
user can add attachment
Add: Grpc tracing for client and server
metaDataReportFactories = make(map[string]func() metadata.MetadataReportFactory) | ||
) | ||
|
||
// SetMetadataReportFactory ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add remark.
metaDataReportFactories[name] = v | ||
} | ||
|
||
// GetConfigCenterFactory ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add remark.
// GetConfigCenterFactory ... | ||
func GetMetadataReportFactory(name string) metadata.MetadataReportFactory { | ||
if metaDataReportFactories[name] == nil { | ||
panic("metadata report for " + name + " is not existing, make sure you have import the package.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
panic? maybe u should return a error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extension is designed for dubbogo plugin system, we can not start the program when user's plugin is not exist.
metadata/instance.go
Outdated
once sync.Once | ||
) | ||
|
||
// GetEnvInstance ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete the unuseful remark or add useful remark.
metadata/instance.go
Outdated
}) | ||
} | ||
|
||
func GetMetadataReportInstance() MetadataReport { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add useful remark.
var ( | ||
MetadataReportInstance MetadataReport | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add useful remark.
@hxmhlt pls add some words of "What this PR does:" for this pr. |
Codecov Report
@@ Coverage Diff @@
## feature/dubbo-2.7.5 #405 +/- ##
====================================================
Coverage 67.19% 67.19%
====================================================
Files 163 163
Lines 8387 8387
====================================================
Hits 5636 5636
Misses 2226 2226
Partials 525 525 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What this PR does:
define interface of Metadata report
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: