-
Notifications
You must be signed in to change notification settings - Fork 38
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
Telemetry #83
Merged
Merged
Telemetry #83
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gordon-klotho
approved these changes
Jan 13, 2023
pkg/cli/helpers.go
Outdated
if _, ok := resourceCounts[res.Key().Kind]; !ok { | ||
resourceCounts[res.Key().Kind] = make(map[string]int) | ||
} | ||
resourceCounts[res.Key().Kind][res.Type()] = resourceCounts[res.Key().Kind][res.Type()] + 1 |
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.
Suggested change
resourceCounts[res.Key().Kind][res.Type()] = resourceCounts[res.Key().Kind][res.Type()] + 1 | |
resourceCounts[res.Key().Kind][res.Type()]++ |
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.
ah, will update before pushing
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
• Does any part of it require special attention?
• Does it relate to or fix any issue? closes #46 and closes #47
can see sample here https://app.datadoghq.com/logs?query=-service%3A%28cc_compiler%20OR%20cloudviz-233a56a%20OR%20cc_api%29&cols=host%2Cservice&event=AQAAAYWrmRqTOXkp7wAAAABBWVdybVJxVEFBQ3RzeGFtMWNiX1BnQUE&index=%2A&messageDisplay=inline&stream_sort=service%2Cdesc&viz=stream&from_ts=1673619895397&to_ts=1673620795397&live=true
right now a lot of kinds dont have types. This looks really messed up in here but i promise its normal in datadog
Standard checks