opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

Add an InitializeMetricSlice (or similar) function to pdatautil package

Open james-bebbington opened this issue 5 years ago • 0 comments
trafficstars

Add a convenience method for initializing a metric with a single resource & instrumentation metric to the pdatautil package. Something like:

func InitializeMetricSlice(metricData data.MetricData) pdata.MetricSlice (may need additional parameters)

Once we have this we should update the host metrics receiver to make use of it.

Originally posted by @bogdandrutu in https://github.com/open-telemetry/opentelemetry-collector/pull/862

james-bebbington avatar Apr 23 '20 02:04 james-bebbington