diff --git a/sdk/metric/provider.go b/sdk/metric/provider.go index 0b13e67d92b..db890d1060b 100644 --- a/sdk/metric/provider.go +++ b/sdk/metric/provider.go @@ -19,7 +19,6 @@ 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 @@ -27,8 +26,6 @@ import ( // 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 @@ -51,8 +48,6 @@ func NewMeterProvider(options ...Option) *MeterProvider { registry := newPipelines(conf.res, conf.readers) return &MeterProvider{ - res: conf.res, - meters: meterRegistry{ pipes: registry, },