Skip to main content
Pre-release

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

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_exporter_credential_provider_gcp-0.65b0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_exporter_credential_provider_gcp-0.65b0.tar.gz
Algorithm Hash digest
SHA256 4715920a33e816ddcff1d086cf8f679e43fa1ef0611c0eb951168077dc49db38
MD5 532284a8bbf30dba977354871a3c4eb7
BLAKE2b-256 07b347849add32e1bb8265c830b64d24b402e350c75fb67e4aa28d7e493aff43

See more details on using hashes here.

File details

Details for the file opentelemetry_exporter_credential_provider_gcp-0.65b0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_exporter_credential_provider_gcp-0.65b0-py3-none-any.whl
Algorithm Hash digest
SHA256 44c6d62b4cc4ca700fd371cd94a2af0359607b612bd759fd5c809b1a644afcd3
MD5 2a47ac4a39c343eb65c44c70297c3d21
BLAKE2b-256 750af2ec7a626f9d693e6cc8ddf002fbbcd8256515621f9ce5f061cd2ca6d852

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page