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

[exporter/datadog] Add api.fail_on_invalid_key to fail fast if API Key is invalid #9426

Merged
merged 11 commits into from
May 5, 2022
Prev Previous commit
Next Next commit
remove unnecessary comment
  • Loading branch information
keisku committed Apr 27, 2022
commit d8e4a89c7b89dbf96ac69c746ebb38b4448b3fae
1 change: 0 additions & 1 deletion exporter/datadogexporter/internal/utils/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func CreateClient(APIKey string, endpoint string) *datadog.Client {
}

// ValidateAPIKey checks that the provided client was given a correct API key.
// If `api.fail_on_invalid_key` is enabled,
func ValidateAPIKey(logger *zap.Logger, client *datadog.Client, failOnInvalidKey bool) {
logger.Info("Validating API key.")
valid, err := client.Validate()
Expand Down