diff --git a/bridge/opencensus/metric.go b/bridge/opencensus/metric.go index d9c44545c65..82965b1af5b 100644 --- a/bridge/opencensus/metric.go +++ b/bridge/opencensus/metric.go @@ -40,7 +40,7 @@ type exporter struct { // NewMetricExporter returns an OpenCensus exporter that exports to an // OpenTelemetry exporter. func NewMetricExporter(base metric.Exporter, res *resource.Resource) metricexport.Exporter { - return &exporter{base: base} + return &exporter{base: base, res: res} } // ExportMetrics implements the OpenCensus metric Exporter interface by sending 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, }, diff --git a/website_docs/exporting_data.md b/website_docs/exporting_data.md index 4b409aa574f..a615722a4fe 100644 --- a/website_docs/exporting_data.md +++ b/website_docs/exporting_data.md @@ -64,7 +64,7 @@ resources := resource.New(context.Background(), ## OTLP Exporter -OpenTelemetry Protocol (OTLP) export is available in the `go.opentelemetry.io/otel/exporters/otlp/otlptrace` and `go.opentelemetry.io/otel/exporters/otlp/otlpmetrics` packages. +OpenTelemetry Protocol (OTLP) export is available in the `go.opentelemetry.io/otel/exporters/otlp/otlptrace` and `go.opentelemetry.io/otel/exporters/otlp/otlpmetric` packages. Please find more documentation on [GitHub](https://github.com/open-telemetry/opentelemetry-go/tree/main/exporters/otlp)