$npx skillfedfor your agent

google-cloud-trace

Google Cloud Trace API client library

With conditionsPyPI InternetReleased Jun 202612.3M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — google_cloud_trace-1.20.0-py3-none-any.whl
v1.20.0 · released 2026-06-22 · Python >=3.10 · 5 runtime deps: google-api-core, google-auth, grpcio, proto-plus, protobuf

Yes, if you are running applications on Google Cloud and need direct access to the Trace API or are building custom tracing workflows. The library is production-stable, actively maintained, and has no known vulnerabilities. Install friction is low. If your primary goal is application instrumentation, the documentation recommends OpenTelemetry instead. Permissive Apache-2.0 license poses no restrictions for most use cases.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.10.
  • Requires Google Cloud authentication (service account key or Application Default Credentials) and an active Google Cloud project with Cloud Trace enabled.
  • Low friction install with a pure-Python wheel.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.

last release 2026-06-22 (53 days) · last repo commit 2026-08-14 · 5,373 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 12,269,201 downloads/mo, #1,328 on PyPI

Verify before relying

pip install google-cloud-trace

from google.cloud import trace_v2

client = trace_v2.TraceServiceClient()
# Use client to send spans to Cloud Trace
  • Whether OpenTelemetry integration is recommended over direct API use for most applications.
  • Performance overhead of trace collection and transmission in high-throughput scenarios.
  • Compatibility with non-Google Cloud observability backends or hybrid tracing setups.
Same gist for agents: .md · .json

What it is and what it does

google-cloud-trace is the official Python client library for Google Cloud Trace, a distributed tracing service that collects and visualizes latency data across your application. It lets you send trace spans directly to Cloud Trace for applications running outside App Engine, complementing the automatic tracing available for App Engine deployments. The library wraps the Trace API and handles authentication, serialization, and transport via gRPC.

The package is built on standard Google Cloud client infrastructure (google-api-core, google-auth, grpcio, proto-plus, protobuf) and supports Python 3.10 and later. It is actively maintained and widely used (top 5000 on PyPI). The documentation recommends OpenTelemetry for application instrumentation rather than direct API calls, so this library is typically used either for custom tracing workflows or as a backend for OpenTelemetry exporters.

Use it for

  • Send custom trace spans from microservices running on Compute Engine or GKE to visualize request flow and latency.
  • Instrument batch jobs or background workers to track execution time and dependencies across distributed tasks.
  • Export traces from on-premises or multi-cloud applications to a centralized Google Cloud Trace dashboard.
  • Integrate with OpenTelemetry collectors to export trace data to Cloud Trace from any instrumented application.
  • Debug performance bottlenecks by correlating trace spans with Cloud Logging and Cloud Monitoring data.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are running applications on Google Cloud and need direct access to the Trace API or are building custom tracing workflows.

The library is production-stable, actively maintained, and has no known vulnerabilities. Install friction is low. If your primary goal is application instrumentation, the documentation recommends OpenTelemetry instead. Permissive Apache-2.0 license poses no restrictions for most use cases.

Install

google-cloud-trace on PyPI

Before you install

Low friction install with a pure-Python wheel. Actively maintained as of 2026-08-14 with recent releases. Depends on standard Google Cloud libraries (google-api-core, google-auth, grpcio, proto-plus, protobuf), all widely used and stable.

Requires Python >= 3.10. Requires Google Cloud authentication (service account key or Application Default Credentials) and an active Google Cloud project with Cloud Trace enabled.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.

Quickstart

pip install google-cloud-trace

from google.cloud import trace_v2

client = trace_v2.TraceServiceClient()
# Use client to send spans to Cloud Trace

Verify before relying

  • Whether OpenTelemetry integration is recommended over direct API use for most applications.
  • Performance overhead of trace collection and transmission in high-throughput scenarios.
  • Compatibility with non-Google Cloud observability backends or hybrid tracing setups.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
google-api-coregoogle-authgrpcioproto-plusprotobuf
MaintenanceActively maintained 53 days since the last release
Last repo commit
First released
Downloads12,269,201 / month, #1,328 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

Evidence: google_cloud_trace-1.20.0-py3-none-any.whl

Tags

Capabilities
cloud trace client librarydistributed tracing google cloudapplication performance monitoringsend trace data to stackdrivergoogle cloud trace apirequest tracing and latency analysiscloud observability tracing
Topics
google-clouddistributed-tracingobservability

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “cloud trace client library”

Give your agent the search over MCP, or paste the wish link into any chat.

More Internet packages

botocore Worth it
PyPI · Internet · released Aug 2026

Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.

Install it if you need programmatic access to AWS services.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.

Install it if you need to call AWS services from async Python code; it is the standard way to do so.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also google-cloud-monitoring · google-cloud-appengine-logging · google-cloud-monitoring-dashboards · google-cloud-logging · google-cloud-tasks · google-cloud-bigquery-logging · google-cloud-billing · google-cloud-error-reporting · google-cloud-service-usage · google-cloud-service-control