This repo provides OpenTelemetry Python exporters, propagators, and resource detectors for Google Cloud Platform.
To get started with instrumentation in Google Cloud, see Generate traces and metrics with Python.
All custom Google Cloud exporters in this repository (opentelemetry-exporter-gcp-trace, opentelemetry-exporter-gcp-monitoring, and opentelemetry-exporter-gcp-logging) are deprecated.
Google Cloud supports native OpenTelemetry Protocol (OTLP) ingestion for Cloud Trace, Cloud Monitoring, and Cloud Logging via the Telemetry API.
Please refer to the Migration Guide for detailed instructions on migrating your application to standard OpenTelemetry OTLP exporters.
The OpenTelemetry Google Cloud Resource Detector (opentelemetry-resourcedetector-gcp) has moved to the opentelemetry-python-contrib repository:
https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/resource/opentelemetry-resourcedetector-gcp
To learn more about instrumentation and observability, including opinionated recommendations for Google Cloud Observability, visit Instrumentation and observability.
API docs and additional examples are available at https://google-cloud-opentelemetry.readthedocs.io/en/latest/
All packages are available on PyPI for installation with pip.
See the contributing guide.