From 3675379e73448c28742f6e8c02c8be84c13c2bf9 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Mon, 3 Oct 2022 09:57:27 -0700 Subject: [PATCH] Remove the unused Resource field from the MeterProvider (#3253) --- sdk/metric/provider.go | 5 ----- 1 file changed, 5 deletions(-) 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, },