transform

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package transform provides translations for opentelemetry-go concepts and structures to otlp structures.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnimplementedAgg = errors.New("unimplemented aggregator")

ErrUnimplementedAgg is returned when a transformation of an unimplemented aggregator is attempted.

Functions

func Attributes added in v0.4.0

func Attributes(attrs []core.KeyValue) []*commonpb.AttributeKeyValue

Attributes transforms a slice of KeyValues into a slice of OTLP attribute key-values.

func Record

func Record(r export.Record) (*metricpb.Metric, error)

Record transforms a Record into an OTLP Metric. An ErrUnimplementedAgg error is returned if the Record Aggregator is not supported.

func Resource added in v0.4.0

func Resource(r *resource.Resource) *resourcepb.Resource

Resource transforms a Resource into an OTLP Resource.

func SpanData added in v0.4.0

func SpanData(sdl []*export.SpanData) []*tracepb.ResourceSpans

SpanData transforms a slice of SpanData into a slice of OTLP ResourceSpans.

Types

This section is empty.

Jump to

Keyboard shortcuts

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