Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OCSliceToMetrics

func OCSliceToMetrics(ocmds []MetricsData) pdata.Metrics

    OCSliceToMetrics converts a slice of OC data format to data.MetricData. Deprecated: use pdata.Metrics instead.

    func OCToMetrics

    func OCToMetrics(md MetricsData) pdata.Metrics

      OCToMetrics converts OC data format to data.MetricData. Deprecated: use pdata.Metrics instead. OCToMetrics may be used only by OpenCensus receiver and exporter implementations.

      func OCToTraces

      func OCToTraces(node *occommon.Node, resource *ocresource.Resource, spans []*octrace.Span) pdata.Traces

        OCToTraces may be used only by OpenCensus receiver and exporter implementations. Deprecated: use pdata.Traces instead.

        func ResourceSpansToOC

        func ResourceSpansToOC(rs pdata.ResourceSpans) (*occommon.Node, *ocresource.Resource, []*octrace.Span)

          ResourceSpansToOC may be used only by OpenCensus receiver and exporter implementations. Deprecated: Use pdata.Traces. TODO: move this function to OpenCensus package.

          Types

          type MetricsData

          type MetricsData struct {
          	Node     *commonpb.Node
          	Resource *resourcepb.Resource
          	Metrics  []*metricspb.Metric
          }

            MetricsData is a struct that groups proto metrics with a unique node and a resource. Deprecated: use pdata.Metrics instead.

            func MetricsToOC

            func MetricsToOC(md pdata.Metrics) []MetricsData

              MetricsToOC may be used only by OpenCensus receiver and exporter implementations. TODO: move this function to OpenCensus package.