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

[tencentcloudexporter]move the logic of configuration check to the Va… #6211

Merged
merged 1 commit into from
Nov 9, 2021
Merged

[tencentcloudexporter]move the logic of configuration check to the Va… #6211

merged 1 commit into from
Nov 9, 2021

Conversation

wgliang
Copy link
Member

@wgliang wgliang commented Nov 9, 2021

…lidate function

Description:
Fix #6135 (comment)

Link to tracking Issue:

Testing:

Documentation:

@wgliang wgliang requested review from a team and bogdandrutu November 9, 2021 03:32
@wgliang
Copy link
Member Author

wgliang commented Nov 9, 2021

/ping @jpkrohling

credential = common.NewCredential(config.SecretID, config.SecretKey)
}
func newLogServiceClient(config *Config, logger *zap.Logger) logServiceClient {
credential := common.NewCredential(config.SecretID, config.SecretKey)
Copy link
Member

Choose a reason for hiding this comment

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

You had a logic before, where if the config parameters are empty, you'd read the values from an env var. This PR removes that logic. Is that on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that piece of logic is redundant. Need to enforce restrictions declared in the configuration file.

@jpkrohling jpkrohling merged commit 111e068 into open-telemetry:main Nov 9, 2021
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.

3 participants