Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TypeStr is type of detector. TypeStr = "gcp" // 'gke' and 'gce' detectors are replaced with the unified 'gcp' detector // TODO(#10348): Remove these after the v0.54.0 release. DeprecatedGKETypeStr = "gke" DeprecatedGCETypeStr = "gce" )
Variables ¶
This section is empty.
Functions ¶
func DeduplicateDetectors ¶ added in v0.53.0
func DeduplicateDetectors(set component.ProcessorCreateSettings, detectors []string) []string
DeduplicateDetectors ensures only one of ['gcp','gke','gce'] are present in the list of detectors. Currently, users configure both GCE and GKE detectors when running on GKE. Resource merge would fail in this case if we don't deduplicate, which would break users. TODO(#10348): Remove this function after the v0.54.0 release.
func NewDetector ¶ added in v0.53.0
func NewDetector(set component.ProcessorCreateSettings, _ internal.DetectorConfig) (internal.Detector, error)
NewDetector returns a detector which can detect resource attributes on: * Google Compute Engine (GCE). * Google Kubernetes Engine (GKE). * Google App Engine (GAE). * Cloud Run. * Cloud Functions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.