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.66b2

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.66b2
File Size Uploaded Provenance Actions
opentelemetry_exporter_credential_provider_gcp-0.66b2.tar.gz 7.1 kB Without provenance Details for opentelemetry_exporter_credential_provider_gcp-0.66b2.tar.gz

Built distribution (wheel)

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

Total release size: 14.9 kB

Release files / opentelemetry_exporter_credential_provider_gcp-0.66b2.tar.gz

Download URL opentelemetry_exporter_credential_provider_gcp-0.66b2.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a3c885176b57f44fb639488ad68f4bc520dc69982473090ed01c7c9139359001
BLAKE2b-256 checksum
How to use checksums
1ffe2e780d8a993952d8bc1244b8095fef5eca306e889c997f156d5d8612b193
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

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

Download URL opentelemetry_exporter_credential_provider_gcp-0.66b2-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35d2122fc4c1c43e0d4cfa75c9778b437e755e37eaa43f890ea7efa22c4e7c21
BLAKE2b-256 checksum
How to use checksums
a6884388f8cfd860756d2cb387f617c7d8241a7c14f8b7f66a301ef85f290449
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22

Security for opentelemetry-exporter-credential-provider-gcp 0.66b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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