| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package gcp // import "go.opentelemetry.io/contrib/detectors/gcp" |
| 5 |
|
| 6 |
import "github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp" |
| 7 |
|
| 8 |
// gcpDetector can detect attributes of GCP environments. |
| 9 |
type gcpDetector interface { |
| 10 |
ProjectID() (string, error) |
| 11 |
CloudPlatform() gcp.Platform |
| 12 |
GKEAvailabilityZoneOrRegion() (string, gcp.LocationType, error) |
| 13 |
GKEClusterName() (string, error) |
| 14 |
GKEHostID() (string, error) |
| 15 |
FaaSName() (string, error) |
| 16 |
FaaSVersion() (string, error) |
| 17 |
FaaSID() (string, error) |
| 18 |
FaaSCloudRegion() (string, error) |
| 19 |
AppEngineFlexAvailabilityZoneAndRegion() (string, string, error) |
| 20 |
AppEngineStandardAvailabilityZone() (string, error) |
| 21 |
AppEngineStandardCloudRegion() (string, error) |
| 22 |
AppEngineServiceName() (string, error) |
| 23 |
AppEngineServiceVersion() (string, error) |
| 24 |
AppEngineServiceInstance() (string, error) |
| 25 |
GCEAvailabilityZoneAndRegion() (string, string, error) |
| 26 |
GCEHostType() (string, error) |
| 27 |
GCEHostID() (string, error) |
| 28 |
GCEHostName() (string, error) |
| 29 |
GCEInstanceHostname() (string, error) |
| 30 |
GCEInstanceName() (string, error) |
| 31 |
CloudRunJobExecution() (string, error) |
| 32 |
CloudRunJobTaskIndex() (string, error) |
| 33 |
} |