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 ¶
ReadOnlyAttributes is an interface to abstract between pulling attributes from PData library or OTEL SDK.
Click to show internal directories.
Click to hide internal directories.