ottlcommon

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapValue

func GetMapValue(attrs pcommon.Map, mapKey string) interface{}

func GetValue

func GetValue(val pcommon.Value) interface{}

func ResourcePathGetSetter

func ResourcePathGetSetter[K ResourceContext](path []ottl.Field) (ottl.GetSetter[K], error)

func ScopePathGetSetter

func ScopePathGetSetter[K InstrumentationScopeContext](path []ottl.Field) (ottl.GetSetter[K], error)

func SetMapValue

func SetMapValue(attrs pcommon.Map, mapKey string, val interface{})

func SetValue

func SetValue(value pcommon.Value, val interface{})

Types

type InstrumentationScopeContext added in v0.62.0

type InstrumentationScopeContext interface {
	GetInstrumentationScope() pcommon.InstrumentationScope
}

type ResourceContext added in v0.62.0

type ResourceContext interface {
	GetResource() pcommon.Resource
}

Jump to

Keyboard shortcuts

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