translator

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMetadata

func ConvertMetadata(event *modelpb.APMEvent, resource pcommon.Resource)

func ConvertSpan

func ConvertSpan(event *modelpb.APMEvent, dest ptrace.Span)

func ConvertSpanId

func ConvertSpanId(src string) pcommon.SpanID

func ConvertSpanKind

func ConvertSpanKind(src string) ptrace.SpanKind

func ConvertTraceId

func ConvertTraceId(src string) pcommon.TraceID

func ConvertTransaction

func ConvertTransaction(event *modelpb.APMEvent, dest ptrace.Span)

func GetStartAndEndTimestamps

func GetStartAndEndTimestamps(timestamp *timestamppb.Timestamp, duration *durationpb.Duration) (*pcommon.Timestamp, *pcommon.Timestamp)

func PutLabelValue

func PutLabelValue(attrs pcommon.Map, m map[string]*modelpb.LabelValue)

func PutMap

func PutMap(attrs pcommon.Map, m map[string]interface{})

func PutNumericLabelValue

func PutNumericLabelValue(attrs pcommon.Map, m map[string]*modelpb.NumericLabelValue)

func PutOptionalBool

func PutOptionalBool(attrs pcommon.Map, key string, value *bool)

func PutOptionalFloat

func PutOptionalFloat[T float32 | float64](attrs pcommon.Map, key string, value *T)

func PutOptionalInt

func PutOptionalInt[T Integer](attrs pcommon.Map, key string, value *T)

func PutOptionalStr

func PutOptionalStr(attrs pcommon.Map, key string, value *string)

func PutStr

func PutStr(attrs pcommon.Map, key string, value string)

func PutStrArray

func PutStrArray(attrs pcommon.Map, key string, value []string)

Types

type Integer

type Integer interface {
	int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64
}

Jump to

Keyboard shortcuts

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