metrics

package
v0.17.0 Latest Latest
Warning

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

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

Documentation

Overview

Package metrics provides functions to convert OTLP metrics to OTLP Arrow metrics and vice versa. This package also supports the conversion of uni-variate metrics into multi-variate metrics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToByte

func BoolToByte(b bool) byte

func DataPointSig

func DataPointSig[N DataPoint](dataPoint N, multivariateKey string) []byte

func MapSig

func MapSig(sig []byte, kvs pcommon.Map, multivariateKey string) []byte

func SliceSig

func SliceSig(sig []byte, sl pcommon.Slice) []byte

func ValueSig

func ValueSig(sig []byte, value pcommon.Value) []byte

Types

type DataPoint

type DataPoint interface {
	Attributes() pcommon.Map
	Timestamp() pcommon.Timestamp
	StartTimestamp() pcommon.Timestamp
}

Directories

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

Jump to

Keyboard shortcuts

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