Skip to content

Commit

Permalink
fix otlp exporter bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyuancheung committed Jan 2, 2022
1 parent db85073 commit d9f3832
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exporters/otlp/otlpmetric/exporter.go
Expand Up @@ -24,7 +24,6 @@ import (
"go.opentelemetry.io/otel/sdk/metric/export"
"go.opentelemetry.io/otel/sdk/metric/export/aggregation"
"go.opentelemetry.io/otel/sdk/resource"
metricpb "go.opentelemetry.io/proto/otlp/metrics/v1"
)

var (
Expand Down Expand Up @@ -57,7 +56,7 @@ func (e *Exporter) Export(ctx context.Context, res *resource.Resource, ilr expor
// call, as per the specification. We can change the
// signature of UploadMetrics correspondingly. Here create a
// singleton list to reduce the size of the current PR:
return e.client.UploadMetrics(ctx, []*metricpb.ResourceMetrics{rm})
return e.client.UploadMetrics(ctx, rm)
}

// Start establishes a connection to the receiving endpoint.
Expand Down

0 comments on commit d9f3832

Please sign in to comment.