Resource is missing in MetricRecord for MetricExporter #1022
Closed
Description
Is your feature request related to a problem? Please describe.
MetricExporter can not get access to Metric's resource in the current API.
Describe the solution you'd like
Add a parameter for resources like go's implementation https://github.com/open-telemetry/opentelemetry-go/blob/master/exporters/metric/prometheus/prometheus.go#L171
MetricExporter.export(
resource: Resource,
metrics: MetricRecord[],
resultCallback: (result: ExportResult) => void
): void;
However, altering the order of the parameters will be a breaking change.