opentelemetry-resourcedetector-gcp 1.14.0


pip install opentelemetry-resourcedetector-gcp

  Latest version

Released: Jul 24, 2026


Meta
Author: OpenTelemetry Authors
Requires Python: >=3.10

Classifiers

Development Status
  • 4 - Beta

Intended Audience
  • Developers

License
  • OSI Approved :: Apache Software License

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

pypi

This library provides support for detecting GCP resources like GCE, GKE, etc.

Installation

pip install opentelemetry-resourcedetector-gcp

Usage

The GoogleCloudResourceDetector is automatically used by the OpenTelemetry SDK when it is installed in the python environment.

If you are setting resource detectors through the environment variable OTEL_EXPERIMENTAL_RESOURCE_DETECTORS, you should use the value gcp, for the GoogleCloudResourceDetector to be installed.

References

Extras: None
Dependencies:
opentelemetry-api (~=1.30)
opentelemetry-sdk (~=1.30)
requests (~=2.24)