1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-04-13 11:30:31 +02:00

Remove the unused Resource field from the MeterProvider (#3253)

This commit is contained in:
Tyler Yahn 2022-10-03 09:57:27 -07:00 committed by GitHub
parent efdbe5aad1
commit 3675379e73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},