Skip to content

Commit

Permalink
Remove the unused Resource field from the MeterProvider (#3253)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored Oct 3, 2022
1 parent efdbe5a commit 3675379
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sdk/metric/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,13 @@ import (

"go.opentelemetry.io/otel/metric"
"go.opentelemetry.io/otel/sdk/instrumentation"
"go.opentelemetry.io/otel/sdk/resource"
)

// MeterProvider handles the creation and coordination of Meters. All Meters
// created by a MeterProvider will be associated with the same Resource, have
// the same Views applied to them, and have their produced metric telemetry
// passed to the configured Readers.
type MeterProvider struct {
res *resource.Resource

meters meterRegistry

forceFlush, shutdown func(context.Context) error
Expand All @@ -51,8 +48,6 @@ func NewMeterProvider(options ...Option) *MeterProvider {
registry := newPipelines(conf.res, conf.readers)

return &MeterProvider{
res: conf.res,

meters: meterRegistry{
pipes: registry,
},
Expand Down

0 comments on commit 3675379

Please sign in to comment.