opencensus

package module
v0.95.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 20 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OCToMetrics

func OCToMetrics(node *occommon.Node, resource *ocresource.Resource, metrics []*ocmetrics.Metric) pmetric.Metrics

OCToMetrics converts OC data format to pmetric.Metrics, may be used only by OpenCensus receiver and exporter implementations.

func OCToTraces

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

OCToTraces may be used only by OpenCensus receiver and exporter implementations. Deprecated: use ptrace.Traces instead. TODO: move this function to OpenCensus package.

func ResourceMetricsToOC

func ResourceMetricsToOC(rm pmetric.ResourceMetrics) (*occommon.Node, *ocresource.Resource, []*ocmetrics.Metric)

ResourceMetricsToOC converts pmetric.ResourceMetrics to OC data format, may be used only by OpenCensus receiver and exporter implementations.

func ResourceSpansToOC

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL