Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OpenTelemetry GCP Credential Provider for OTLP Exporters

https://badge.fury.io/py/opentelemetry-exporter-credential-provider-gcp.svg Documentation Status

This library provides support for supplying your machine’s Application Default Credentials (https://cloud.google.com/docs/authentication/application-default-credentials) to the OTLP Exporters created automatically by OpenTelemetry Python’s auto instrumentation. These credentials authorize OTLP traces to be sent to telemetry.googleapis.com.

Currently telemetry.googleapis.com only supports OTLP traces, but eventually the endpoint will support OTLP logs and metrics too.

To learn more about instrumentation and observability, including opinionated recommendations for Google Cloud Observability, visit Instrumentation and observability.

For how to export trace data when you use manual instrumentation visit Migrate from the Trace exporter to the OTLP endpoint.

Installation

pip install opentelemetry-exporter-credential-provider-gcp

Usage

Your installed HTTP/GRPC OTLP Exporter must be at release >=1.37 for this feature.

Set the following environment variables: export OTEL_RESOURCE_ATTRIBUTES=”gcp.project_id=<project-id>” export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=”https://telemetry.googleapis.com:443/v1/traces”

If you plan to have python auto instrumentation use the GRPC OTLP Exporter to send traces to Cloud Trace: export OTEL_PYTHON_EXPORTER_OTLP_GRPC_TRACES_CREDENTIAL_PROVIDER=gcp_grpc_credentials

If you plan to have python auto instrumentation use the HTTP OTLP Exporter to send traces to Cloud Trace: export OTEL_PYTHON_EXPORTER_OTLP_HTTP_TRACES_CREDENTIAL_PROVIDER=gcp_http_credentials

References

Metadata

Release files for opentelemetry-exporter-credential-provider-gcp 0.66b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-exporter-credential-provider-gcp 0.66b0
File Size Uploaded
opentelemetry_exporter_credential_provider_gcp-0.66b0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-exporter-credential-provider-gcp 0.66b0
File Interpreter ABI Platform
opentelemetry_exporter_credential_provider_gcp-0.66b0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / opentelemetry_exporter_credential_provider_gcp-0.66b0.tar.gz

Download URL opentelemetry_exporter_credential_provider_gcp-0.66b0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
511c7c67297c70472ef2cee2b31f3cf3cc5f567c2912a16b1fac67af2eb8f396
BLAKE2b-256 checksum
How to use checksums
2c5ad09381be4d8073fcfca4cd855507711e7198eca174a25c9008fecd1a0ba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21

Release files / opentelemetry_exporter_credential_provider_gcp-0.66b0-py3-none-any.whl

Download URL opentelemetry_exporter_credential_provider_gcp-0.66b0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eca01837097077c7a29ebf49bbb879c2a6c4da7f07809283a866788d95d740f7
BLAKE2b-256 checksum
How to use checksums
dbc76afcdaf56d80a7f8ffff08d1142b0a8207765f9b835b5d838fe7b8968b4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.21
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page