Skip to content

Commit

Permalink
pass res to exporter (#3250)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktong authored Oct 2, 2022
1 parent aca054b commit efdbe5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/opencensus/metric.go
Original file line number Diff line number Diff line change
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

0 comments on commit efdbe5a

Please sign in to comment.