resourcemapping

package module
v0.37.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ProjectIDAttributeKey = "gcp.project.id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GceResource

type GceResource struct {
	Labels map[string]string
	Type   string
}

func ResourceAttributesToMonitoredResource

func ResourceAttributesToMonitoredResource(attrs ReadOnlyAttributes) *GceResource

ResourceAttributesToMonitoredResource converts from a set of OTEL resource attributes into a GCP monitored resource type and label set. E.g. This may output `gce_instance` type with appropriate labels.

type ReadOnlyAttributes

type ReadOnlyAttributes interface {
	GetString(string) (string, bool)
}

ReadOnlyAttributes is an interface to abstract between pulling attributes from PData library or OTEL SDK.

Jump to

Keyboard shortcuts

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