Documentation
¶
Index ¶
- func CompareMetricSlices(expected, actual pdata.MetricSlice) error
- func CompareMetrics(expected, actual pdata.Metrics, options ...CompareOption) error
- func CompareNumberDataPointSlices(expected, actual pdata.NumberDataPointSlice) error
- func CompareNumberDataPoints(expected, actual pdata.NumberDataPoint) error
- func CompareResourceMetrics(expected, actual pdata.ResourceMetrics) error
- type CompareOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareMetricSlices ¶
func CompareMetricSlices(expected, actual pdata.MetricSlice) error
CompareMetricSlices compares each part of two given MetricSlices and returns an error if they don't match. The error describes what didn't match. The expected and actual values are clones before options are applied.
func CompareMetrics ¶ added in v0.44.0
func CompareMetrics(expected, actual pdata.Metrics, options ...CompareOption) error
func CompareNumberDataPointSlices ¶
func CompareNumberDataPointSlices(expected, actual pdata.NumberDataPointSlice) error
CompareNumberDataPointSlices compares each part of two given NumberDataPointSlices and returns an error if they don't match. The error describes what didn't match.
func CompareNumberDataPoints ¶
func CompareNumberDataPoints(expected, actual pdata.NumberDataPoint) error
CompareNumberDataPoints compares each part of two given NumberDataPoints and returns an error if they don't match. The error describes what didn't match.
func CompareResourceMetrics ¶ added in v0.44.0
func CompareResourceMetrics(expected, actual pdata.ResourceMetrics) error
Types ¶
type CompareOption ¶ added in v0.41.0
type CompareOption interface {
// contains filtered or unexported methods
}
CompareOption is applied by the CompareMetricSlices function to mutates an expected and/or actual result before comparing.
func IgnoreMetricAttributeValue ¶ added in v0.44.0
func IgnoreMetricAttributeValue(attributeName string, metricNames ...string) CompareOption
IgnoreMetricAttributeValue is a CompareOption that clears all values
func IgnoreMetricValues ¶ added in v0.44.0
func IgnoreMetricValues() CompareOption
IgnoreMetricValues is a CompareOption that clears all values