attributes

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// AttributeDatadogHostname the datadog host name attribute
	AttributeDatadogHostname = "datadog.host.name"
	// AttributeK8sNodeName the datadog k8s node name attribute
	AttributeK8sNodeName = "k8s.node.name"
)

Variables

This section is empty.

Functions

func ContainerTagFromAttributes added in v0.33.0

func ContainerTagFromAttributes(attr map[string]string) map[string]string

ContainerTagFromAttributes extracts the value of _dd.tags.container from the given set of attributes.

func OriginIDFromAttributes added in v0.35.0

func OriginIDFromAttributes(attrs pcommon.Map) (originID string)

OriginIDFromAttributes gets the origin IDs from resource attributes. If not found, an empty string is returned for each of them.

func SourceFromAttributes added in v0.38.0

func SourceFromAttributes(attrs pcommon.Map, usePreviewRules bool) (source.Source, bool)

SourceFromAttributes gets a telemetry signal source from its attributes.

func TagsFromAttributes

func TagsFromAttributes(attrs pcommon.Map) []string

TagsFromAttributes converts a selected list of attributes to a tag list that can be added to metrics.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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