resourcemapping

package module
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func ResourceAttributesToLoggingMonitoredResource added in v0.43.0

func ResourceAttributesToLoggingMonitoredResource(attrs ReadOnlyAttributes) *monitoredrespb.MonitoredResource

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

func ResourceAttributesToMonitoringMonitoredResource added in v0.43.0

func ResourceAttributesToMonitoringMonitoredResource(attrs ReadOnlyAttributes) *monitoredrespb.MonitoredResource

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

Types

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