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

package gcp

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

Index

Types

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

gce.go gke.go

Version
v0.13.0
Published
Oct 10, 2020
Platform
windows/amd64
Imports
8 packages
Last checked
now

Tools for package owners.