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