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

Diagnose partial/missing telemetry configuration #12802

Merged
merged 4 commits into from
Oct 20, 2021
Merged

Conversation

sgmiller
Copy link
Collaborator

No description provided.

@sgmiller sgmiller requested a review from a team October 11, 2021 19:18
@hashicorp-cla
Copy link

hashicorp-cla commented Oct 11, 2021

CLA assistant check
All committers have signed the CLA.

@vercel vercel bot temporarily deployed to Preview – vault October 11, 2021 19:19 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 11, 2021 19:19 Inactive
@sgmiller sgmiller changed the base branch from master to main October 11, 2021 19:19
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 11, 2021 19:20 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 11, 2021 19:20 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook October 11, 2021 19:21 Inactive
@vercel vercel bot temporarily deployed to Preview – vault October 11, 2021 19:21 Inactive
@sgmiller sgmiller requested review from HridoyRoy and briankassouf and removed request for a team October 11, 2021 19:22
} else {
t := config.Telemetry
// If any Circonus setting is present but we're missing the basic fields...
if coalesce(t.CirconusAPIURL, t.CirconusAPIToken, t.CirconusCheckID, t.CirconusCheckTags, t.CirconusCheckSearchTag,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: there are a lot of fields in the if statement here. Would it be helpful to add the fields that signify a present Circonus configuration to a struct?

Copy link
Contributor

@HridoyRoy HridoyRoy left a comment

Choose a reason for hiding this comment

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

lgtm!

@sgmiller sgmiller merged commit 886911d into main Oct 20, 2021
@sgmiller sgmiller deleted the diagnose-telemetry branch October 20, 2021 21:48
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