-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Closed as not planned
Copy link
Labels
Stalearea:metricsPart of OpenTelemetry MetricsPart of OpenTelemetry Metricsclosed as inactiveenhancementNew feature or requestNew feature or requestpkg:SDKRelated to an SDK packageRelated to an SDK packagepkg:testingRelated to testing or a testing packageRelated to testing or a testing package
Description
Problem Statement
The metricdatatest assert functions are great! However, I'm always frustrated when using them and I need to ignore a field. For example, I have real latency measured in a histogram and I cannot deterministically defined the expected buckets, sum, min, or max.
Similarly, I may only care about a sum value, but don't know the attributes they will have because that is done through other instrumentation.
Proposed Solution
Add an "Ignore" option i.e. https://pkg.go.dev/github.com/google/go-cmp/cmp#Ignore
Alternatives
- Add an "IgnoreZeroValueFields" that allow you to skip any field that is zero value
- Add an Ignore option that takes a generic type that will be ignored in its evaluation. It would work similar to the assert.IsType second param is evaluated and used.
Metadata
Metadata
Assignees
Labels
Stalearea:metricsPart of OpenTelemetry MetricsPart of OpenTelemetry Metricsclosed as inactiveenhancementNew feature or requestNew feature or requestpkg:SDKRelated to an SDK packageRelated to an SDK packagepkg:testingRelated to testing or a testing packageRelated to testing or a testing package
Type
Projects
Status
Done