Skip to content
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

[tencentcloudlogserviceexporter]Fix the specified data reporting area bug, and simplify the configuration #6135

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

wgliang
Copy link
Member

@wgliang wgliang commented Nov 4, 2021

Description:
Fixing a bug -The specified data reporting area bug, and simplify the configuration.

Link to tracking Issue:

Testing:

Documentation:

@wgliang wgliang requested review from a team and anuraaga November 4, 2021 14:14
@wgliang
Copy link
Member Author

wgliang commented Nov 5, 2021

After carefully checking the failed test, it seems that it has nothing to do with the PR. /ready-to-merge

otlp:
protocols:
grpc:
endpoint: ":4317"
Copy link
Member

Choose a reason for hiding this comment

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

You don't actually need this property, as it will default to this value anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, I prefer to declare the port configuration, the user may not know what the default configuration is.

@@ -45,8 +44,8 @@ type logServiceClientImpl struct {

// newLogServiceClient Create Log Service client
func newLogServiceClient(config *Config, logger *zap.Logger) (logServiceClient, error) {
if config == nil || config.TCPAddr.Endpoint == "" || config.LogSet == "" || config.Topic == "" {
return nil, errors.New("missing logservice params: TCPAddr, LogSet, Topic")
if config == nil || config.Region == "" || config.LogSet == "" || config.Topic == "" {
Copy link
Member

Choose a reason for hiding this comment

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

Could you please create an issue to move this logic to the Validate function?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure.

@jpkrohling
Copy link
Member

LGTM, made a few comments that can be addressed in another PR.

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.

4 participants