Skip to content

Commit

Permalink
Initialize MeterProvider readers field for new (#2948)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored Jun 9, 2022
1 parent 0c857a3 commit 2aee92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/metric/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ import (
type MeterProvider struct {
res *resource.Resource

meters meterRegistry
//nolint:structcheck,unused //This will be used by the MP to produce for a reader, and for the Meters to do proper view filtering
meters meterRegistry
readers map[Reader][]view.View

forceFlush, shutdown func(context.Context) error
Expand All @@ -56,6 +55,7 @@ func NewMeterProvider(options ...Option) *MeterProvider {

return &MeterProvider{
res: conf.res,
readers: conf.readers,
forceFlush: flush,
shutdown: sdown,
}
Expand Down

0 comments on commit 2aee92c

Please sign in to comment.