skillfed

opentelemetry-exporter-gcp-trace

Google Cloud Trace exporter for OpenTelemetry

opentelemetry-exporter-gcp-trace v1.14.0 11.9M downloads/30d#1,357 on PyPI83
Permissive license Apache-2.0 Active released

What it is and what it does

This package provides an OpenTelemetry exporter that sends trace spans to Google Cloud Trace, enabling distributed tracing and observability for applications running on or integrated with Google Cloud Platform. It acts as a bridge between OpenTelemetry's instrumentation framework and GCP's native tracing backend, allowing you to collect, visualize, and analyze request flows across microservices.

The package is marked as deprecated in favor of native OTLP (OpenTelemetry Protocol) ingestion, which Google Cloud now supports directly. However, it remains actively maintained and functional. It depends on google-cloud-trace for the underlying GCP integration, opentelemetry-api and opentelemetry-sdk for the tracing framework, opentelemetry-resourcedetector-gcp for GCP resource detection, and typing-extensions for type hints. Python 3.9 or later is required.

Use it for:

  • Send distributed traces from a Python microservice to Google Cloud Trace for centralized observability.
  • Instrument a multi-service application running on GCP and correlate requests across service boundaries.
  • Export OpenTelemetry spans collected from your application to Cloud Trace for performance analysis and debugging.
  • Integrate existing OpenTelemetry instrumentation with GCP's native tracing backend without rewriting instrumentation code.
  • Monitor latency and errors in cloud-native applications by exporting detailed trace data to Cloud Trace.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Exports OpenTelemetry traces to Google Cloud Trace for distributed tracing and observability in GCP environments.

Yes, with conditions. The package is actively maintained and low-friction to install, but it is explicitly deprecated in favor of native OTLP exporters. Install it if you are already committed to this exporter or migrating gradually; for new projects, consider using standard OTLP exporters instead per the migration guide. No known security vulnerabilities.

Install

opentelemetry-exporter-gcp-trace on PyPI

pip

pip install opentelemetry-exporter-gcp-trace

uv

uv add opentelemetry-exporter-gcp-trace

poetry

poetry add opentelemetry-exporter-gcp-trace

Installing opentelemetry-exporter-gcp-trace

Before you install

Low friction install with active maintenance—released 11 days ago and last commit on 2026-08-12. Depends on google-cloud-trace, opentelemetry-api, opentelemetry-sdk, opentelemetry-resourcedetector-gcp, and typing-extensions.

License in practice

Apache-2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.

Quickstart

pip install opentelemetry-exporter-gcp-trace

from opentelemetry import trace
from opentelemetry.exporter.cloud_trace import CloudTraceSpanExporter
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import SimpleSpanProcessor

trace.set_tracer_provider(TracerProvider())
cloud_trace_exporter = CloudTraceSpanExporter(project_id='my-gcloud-project')
trace.get_tracer_provider().add_span_processor(SimpleSpanProcessor(cloud_trace_exporter))
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span('foo'):
    print('Hello world!')

Requires a GCP project ID and appropriate Google Cloud credentials configured in your environment.

Verify before relying

  • Whether the deprecation warning affects long-term support or if the package will continue receiving maintenance updates.
  • Performance characteristics and overhead when exporting high-volume traces to Cloud Trace.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 5 — google-cloud-trace, opentelemetry-api, opentelemetry-sdk, opentelemetry-resourcedetector-gcp, typing-extensions
Maintenance actively maintained — 11 days since the last release
Last repo commit
First released
Downloads 11,854,941/month — #1,357 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: opentelemetry_exporter_gcp_trace-1.14.0-py3-none-any.whl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

opentelemetry gcp trace exportergoogle cloud trace integrationdistributed tracing gcpopentelemetry cloud tracegcp observability tracescloud trace span exporteropentelemetry gcp monitoring
observabilitygcp-integrationdistributed-tracing

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-exporter-gcp-logging

Exports OpenTelemetry logs to Google Cloud…

permissive · top 5,000 on PyPI

opentelemetry-exporter-gcp-monitoring

Exports OpenTelemetry metrics to Google Cloud…

permissive · top 5,000 on PyPI

opentelemetry-propagator-gcp

Propagates trace context in Google Cloud's…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-gcp

Automatically detects and reports GCP resource…

permissive · top 5,000 on PyPI

pyroscope-otel

Connects OpenTelemetry tracing with Pyroscope…

permissive · top 5,000 on PyPI

azure-monitor-opentelemetry-exporter

Exports OpenTelemetry traces, metrics, and logs…

permissive · top 1,000 on PyPI

opentelemetry-exporter-otlp-proto-grpc

Exports telemetry data from Python applications…

permissive · top 1,000 on PyPI

opentelemetry-sdk-extension-aws

Provides OpenTelemetry SDK components to make…

permissive · top 5,000 on PyPI

nv-one-logger-core

Provides core telemetry abstractions (spans,…

permissive · top 15,000 on PyPI