package gcp
import "go.opentelemetry.io/contrib/detectors/gcp"
Index ¶
- func SemVersion() string
- func Version() string
- type CloudRun
- func NewCloudRun() *CloudRun
- func (c *CloudRun) Detect(ctx context.Context) (*resource.Resource, error)
- type GCE
- type GKE
Functions ¶
func SemVersion ¶
func SemVersion() string
SemVersion is the semantic version to be supplied to tracer/meter creation.
func Version ¶
func Version() string
Version is the current release version of the GCP resource detector.
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.go
- Version
- v0.24.0
- Published
- Sep 21, 2021
- Platform
- windows/amd64
- Imports
- 8 packages
- Last checked
- now –
Tools for package owners.