Skip to content

Commit

Permalink
Comment how users are expected to match zero-vals
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Nov 11, 2022
1 parent 56ef349 commit a350588
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/metric/view.go
Expand Up @@ -39,7 +39,8 @@ type View func(Instrument) (Stream, bool)
// match criteria. The returned View will only apply mask if all non-zero-value
// fields of criteria match the corresponding Instrument passed to the view. If
// no criteria are provided, all field of criteria are their zero-values, a
// view that matches no instruments is returned.
// view that matches no instruments is returned. If you need to match a
// zero-value field, create a View directly.
//
// The Name field of criteria supports wildcard pattern matching. The wildcard
// "*" is recognized as matching zero or more characters, and "?" is recognized
Expand Down

0 comments on commit a350588

Please sign in to comment.