Back to godoc.org
go.opentelemetry.io/collector/consumer/pdatautil

package pdatautil

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Overview

Package pdatautil is a temporary package to allow components to transition to the new API. It will be removed when pdata.Metrics will be finalized.

Index

func CloneMetrics

func CloneMetrics(md pdata.Metrics) pdata.Metrics

CloneMetrics returns a clone of the given `pdata.Metrics`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func CloneMetricsDataOld

func CloneMetricsDataOld(md consumerdata.MetricsData) consumerdata.MetricsData

CloneMetricsDataOld copied from processors.cloneMetricsDataOld

func MetricAndDataPointCount

func MetricAndDataPointCount(md pdata.Metrics) (int, int)

func MetricCount

func MetricCount(md pdata.Metrics) int

func MetricsFromInternalMetrics

func MetricsFromInternalMetrics(md data.MetricData) pdata.Metrics

MetricsFromMetricsData returns the `pdata.Metrics` representation of the `data.MetricData`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func MetricsFromMetricsData

func MetricsFromMetricsData(ocmds []consumerdata.MetricsData) pdata.Metrics

MetricsFromMetricsData returns the `pdata.Metrics` representation of the `[]consumerdata.MetricsData`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func MetricsToInternalMetrics

func MetricsToInternalMetrics(md pdata.Metrics) data.MetricData

MetricsToInternalMetrics returns the `data.MetricData` representation of the `pdata.Metrics`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func MetricsToMetricsData

func MetricsToMetricsData(md pdata.Metrics) []consumerdata.MetricsData

MetricsToMetricsData returns the `[]consumerdata.MetricsData` representation of the `pdata.Metrics`.

This is a temporary function that will be removed when the new internal pdata.Metrics will be finalized.

func TimeseriesAndPointCount

func TimeseriesAndPointCount(md consumerdata.MetricsData) (int, int)

TimeseriesAndPointCount copied from exporterhelper.measureMetricsExport

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier