Documentation ¶
Index ¶
- func OCToMetrics(node *occommon.Node, resource *ocresource.Resource, ...) pdata.Metrics
- func OCToTraces(node *occommon.Node, resource *ocresource.Resource, spans []*octrace.Span) pdata.Traces
- func ResourceMetricsToOC(rm pdata.ResourceMetrics) (*occommon.Node, *ocresource.Resource, []*ocmetrics.Metric)
- func ResourceSpansToOC(rs pdata.ResourceSpans) (*occommon.Node, *ocresource.Resource, []*octrace.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OCToMetrics ¶ added in v0.10.0
func OCToMetrics(node *occommon.Node, resource *ocresource.Resource, metrics []*ocmetrics.Metric) 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 ¶ added in v0.21.0
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. TODO: move this function to OpenCensus package.
func ResourceMetricsToOC ¶
func ResourceMetricsToOC(rm pdata.ResourceMetrics) (*occommon.Node, *ocresource.Resource, []*ocmetrics.Metric)
ResourceMetricsToOC may be used only by OpenCensus receiver and exporter implementations. Deprecated: Use pdata.Metrics. TODO: move this function to OpenCensus package.
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 ¶
This section is empty.