GCP OTLP Exporter Credential Provider for OpenTelemetry
Project description
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_exporter_credential_provider_gcp-0.62b0.tar.gz.
File metadata
- Download URL: opentelemetry_exporter_credential_provider_gcp-0.62b0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14c3951ff1ac41178d41fd19c1e011ee8e3727d50dc7f1077d675434430362c3
|
|
| MD5 |
23245e181414e6271b3a5127e4a7a536
|
|
| BLAKE2b-256 |
4f23d048d312b0f126adf271c2e65613cd8a2a5c8be1f87d56e6203aa216a279
|
File details
Details for the file opentelemetry_exporter_credential_provider_gcp-0.62b0-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_exporter_credential_provider_gcp-0.62b0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56d15d6486c40d9f958f34b1e9b4b6c9122789f5d136fc1381948b7b4b3af3ca
|
|
| MD5 |
8212b05c9381fd6401f61f2074f13043
|
|
| BLAKE2b-256 |
45a4d59629684cef86a9da39241edd25dc2dff849d08def6200d50c951e1dd2a
|