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

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.66b1
File Size Uploaded
opentelemetry_exporter_credential_provider_gcp-0.66b1.tar.gz 7.1 kB Details

Built distribution (wheel)

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

Total release size: 14.9 kB

Release files / opentelemetry_exporter_credential_provider_gcp-0.66b1.tar.gz

Download URL opentelemetry_exporter_credential_provider_gcp-0.66b1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eadf244142bfd26409eb4f21aca50928ea9e98d334804ed917a36b8194c1e9e0
BLAKE2b-256 checksum
How to use checksums
ca8959be5d22fc699857f2847fafe3d6cf4cd6f9082b22d33996535e0ab17f59
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.66b1-py3-none-any.whl

Download URL opentelemetry_exporter_credential_provider_gcp-0.66b1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76e6b1b44f75ad9d4fa826a528fee9aeb21e2089e7950492eee3ace0d55e456a
BLAKE2b-256 checksum
How to use checksums
e796e5d7492c24c93f63089dcba0d82eb0b098f6d8a060448d8aa286422715b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.22
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