Skip to main content

GCP OTLP Exporter Credential Provider for OpenTelemetry

Project description

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

Project details


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.63b1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_exporter_credential_provider_gcp-0.63b1.tar.gz
Algorithm Hash digest
SHA256 0aa19b5c0285ca99ee5b87d637646813f1a0e01c3cd60cf99fe1dfa1d0b669dc
MD5 9b02b46d09a0747fe60aae46b2b81e3a
BLAKE2b-256 2530a52748337118043ab0f79eed81f48ad25fe8d732e76d5b499a85dea2094a

See more details on using hashes here.

File details

Details for the file opentelemetry_exporter_credential_provider_gcp-0.63b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_exporter_credential_provider_gcp-0.63b1-py3-none-any.whl
Algorithm Hash digest
SHA256 9af438595b0b1ff1e8df33ace64d5dae0cfa2ba188a2adde7d8b4d3feaba89d0
MD5 81be3dd161e6938cc1242b7055d82b77
BLAKE2b-256 77248c9ee9a3c337a9a359e3b4b0919b9ea891714dc872b233e4849661543398

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 Pingdom Monitoring Sentry Error logging StatusPage Status page