Python Client for Cloud Trace
Cloud Trace: is a distributed tracing system that collects latency data from your applications and displays it in the Google Cloud Platform Console. You can track how requests propagate through your application and receive detailed near real-time performance insights.
Quick Start
In order to use this library, you first need to go through the following steps:
Installation
Install this library in a virtual environment usingvenv.venv is a tool thatcreates isolated Python environments. These isolated environments can have separateversions of Python packages, which allows you to isolate one project’s dependenciesfrom the dependencies of other projects.
Withvenv, it’s possible to install this library without needing systeminstall permissions, and without clashing with the installed systemdependencies.
Code samples and snippets
Code samples and snippets live in thesamples/ folder.
Supported Python Versions
Our client libraries are compatible with all currentactive andmaintenance versions ofPython.
Python >= 3.7
Unsupported Python Versions
Python <= 3.6
If you are using anend-of-lifeversion of Python, we recommend that you update as soon as possible to an actively supported version.
Mac/Linux
python3 -m venv <your-env>source <your-env>/bin/activatepip install google-cloud-traceWindows
py -m venv <your-env>.\<your-env>\Scripts\activatepip install google-cloud-traceNext Steps
Read theClient Library Documentation for Cloud Traceto see other available methods on the client.
Read theCloud Trace Product documentation to learnmore about the product and see How-to Guides.
View thisREADME to see the full list of CloudAPIs that we cover.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.