Registry / observability / contrib-detectors-gcp

contrib-detectors-gcp

JSON →
library1.44.0gogounverified

Package gcp provides a resource detector for GCP Cloud Function environments.

go get go.opentelemetry.io/contrib/detectors/gcp
INSTALL
IMPORT
SIG · CONTRIB-DETECTORS-
C
contrib-detectors-gcp
observabilitygov1.44.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

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

Detects GCP resource attributes using the GCP detector.

package main import ( "context" "log" "go.opentelemetry.io/contrib/detectors/gcp" "go.opentelemetry.io/otel/sdk/resource" ) func main() { ctx := context.Background() detector := gcp.NewDetector() res, err := detector.Detect(ctx) if err != nil { log.Fatal(err) } log.Printf("Detected resource: %v", res) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.44.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources
contrib-detectors-gcp — go get contrib-detectors-gcp · libregistry