gcp – go.opentelemetry.io/contrib/detectors/gcp Index | Files

package gcp

import "go.opentelemetry.io/contrib/detectors/gcp"

Index

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

func (c *CloudRun) Detect(ctx context.Context) (*resource.Resource, error)

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

func (gce *GCE) Detect(ctx context.Context) (*resource.Resource, error)

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

func (gke *GKE) Detect(ctx context.Context) (*resource.Resource, error)

Detect detects associated resources when running in GKE environment.

Source Files

cloud-run.go gce.go gke.go

Version
v0.23.0
Published
Sep 9, 2021
Platform
darwin/amd64
Imports
8 packages
Last checked
now

Tools for package owners.