Skip to content

Commit

Permalink
Merge branch 'main' into bucket-bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Oct 4, 2022
2 parents bccaa84 + 3b657f7 commit 85afd90
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bridge/opencensus/metric.go
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions sdk/metric/provider.go
Expand Up @@ -19,16 +19,13 @@ 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
// created by a MeterProvider will be associated with the same Resource, have
// 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
Expand All @@ -51,8 +48,6 @@ func NewMeterProvider(options ...Option) *MeterProvider {
registry := newPipelines(conf.res, conf.readers)

return &MeterProvider{
res: conf.res,

meters: meterRegistry{
pipes: registry,
},
Expand Down
2 changes: 1 addition & 1 deletion website_docs/exporting_data.md
Expand Up @@ -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)

Expand Down

0 comments on commit 85afd90

Please sign in to comment.