package gcp
import "go.opentelemetry.io/contrib/detectors/gcp"
Index ¶
- type CloudRun
- func NewCloudRun() *CloudRun
- func (c *CloudRun) Detect(ctx context.Context) (*resource.Resource, error)
- type GCE
- type GKE
Types ¶
type CloudRun ¶
type CloudRun struct {
// contains filtered or unexported fields
}
CloudRun collects resource information of Cloud Run instance.
func NewCloudRun ¶
func NewCloudRun() *CloudRun
NewCloudRun creates a CloudRun detector.
func (*CloudRun) Detect ¶
Detect detects associated resources when running on Cloud Run hosts. NOTE: the service.namespace attribute is currently hardcoded to be "cloud-run-managed". This may change in the future, please do not rely on this behavior yet.
type GCE ¶
type GCE struct{}
GCE collects resource information of GCE computing instances
func (*GCE) Detect ¶
Detect detects associated resources when running on GCE hosts.
type GKE ¶
type GKE struct{}
GKE collects resource information of GKE computing instances
func (*GKE) Detect ¶
Detect detects associated resources when running in GKE environment.
Source Files ¶
cloud-run.go gce.go gke.go
- Version
- v0.18.0
- Published
- Mar 5, 2021
- Platform
- windows/amd64
- Imports
- 8 packages
- Last checked
- 3 hours ago –
Tools for package owners.