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:
parent
efdbe5aad1
commit
3675379e73
@ -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,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user