Skip to content

Commit

Permalink
fix(lokicompliance): ignore stats
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed May 27, 2024
1 parent 1dac28e commit d2a006a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/lokicompliance/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ func addFloatCompareOptions(options *cmp.Options) {
*options,
cmpopts.EquateApprox(fraction, margin),
// Ignore stats at all.
cmp.Transformer("TranslateStats", func(stats *lokiapi.Stats) *lokiapi.Stats {
return &lokiapi.Stats{}
cmp.Transformer("TranslateStats", func(lokiapi.OptStats) lokiapi.OptStats {
return lokiapi.OptStats{}
}),
// Normalize label set value.
cmp.Transformer("TranslateLabelSet", func(in lokiapi.OptLabelSet) lokiapi.OptLabelSet {
Expand Down

0 comments on commit d2a006a

Please sign in to comment.