-
Notifications
You must be signed in to change notification settings - Fork 152
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
[chore] Add logs and metrics k8s attributes verification tests #1610
base: main
Are you sure you want to change the base?
[chore] Add logs and metrics k8s attributes verification tests #1610
Conversation
return resourceAttributes, notFoundCounter | ||
} | ||
|
||
func getMetricsResourceAttribute(metrics []pmetric.Metrics, attributeName string) ([]string, int) { |
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.
you're checking on a metric attribute, not a resource attribute
func getMetricsResourceAttribute(metrics []pmetric.Metrics, attributeName string) ([]string, int) { | |
func getMetricsAttribute(metrics []pmetric.Metrics, attributeName string) ([]string, int) { |
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.
@atoulme my understanding of what I am checking here is probably incorrect. I thought I am checking in these tests resourceAttributes
, but actually I am checking logs/metrics attributes
. Should I update the variables and function names from resourceAttributes
to logs/metricsAttributes
, getLogsResourceAttribute
to getLogsAttribute
, etc.?
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.
yes, it's misleading otherwise
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.
renaming done
Description: Adding resource attributes tests to ensure that events and metrics are enriched with additional k8s attributes
Testing: additional tests
Documentation: N/A