common

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package common defines the common types and functions used by the packages logs, metrics and traces.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKeyMap         = errors.New("invalid key map")
	ErrUnsupportedCborType   = errors.New("unsupported cbor type")
	ErrInvalidTypeConversion = errors.New("invalid type conversion")

	ErrInvalidSpanIDLength  = errors.New("invalid span id length")
	ErrInvalidTraceIDLength = errors.New("invalid trace id length")

	ErrNotArraySparseUnion = errors.New("not an arrow array.SparseUnion")
	ErrNotArrayMap         = errors.New("not an arrow array.Map")
)

Functions

func Deserialize

func Deserialize(cborData []byte, target pcommon.Value) error

Deserialize deserializes the given CBOR byte array into a pcommon.value.

func MixUpArrowRecords

func MixUpArrowRecords(rng *rand.Rand, record arrow.Record, relatedRecords []*record_message.RecordMessage) (bool, arrow.Record, []*record_message.RecordMessage)

func Serialize

func Serialize(v *pcommon.Value) ([]byte, error)

Serialize serializes the given pcommon.value into a CBOR byte array.

Types

type AttributeEntries

type AttributeEntries []AttributeEntry

func (AttributeEntries) Len

func (ae AttributeEntries) Len() int

func (AttributeEntries) Less

func (ae AttributeEntries) Less(i, j int) bool

func (AttributeEntries) Swap

func (ae AttributeEntries) Swap(i, j int)

type AttributeEntry

type AttributeEntry struct {
	Key   string
	Value pcommon.Value
}

Directories

Path Synopsis
Package arrow contains common types and functions used to convert OTLP entities into their Arrow representation.
Package arrow contains common types and functions used to convert OTLP entities into their Arrow representation.
tmo
Package otlp contains common types and functions used to convert OTLP Arrow entities into their OTLP representation.
Package otlp contains common types and functions used to convert OTLP Arrow entities into their OTLP representation.

Jump to

Keyboard shortcuts

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