Stackdriver Trace API: Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus.
This page contains information about getting started with the Stackdriver Trace API using the Google API Client Library for Python. In addition, you may be interested in the following documentation:
- Browse the PyDoc reference for the Stackdriver Trace API.
- Read the Developer's guide for the Google API Client Library for Python.
- Interact with this API in your browser using the APIs Explorer for the Stackdriver Trace API.
- Mac OS X
- Python 2.7, or 3.4 or higher
Installing the client library
You can either use a package manager or download and install the Python client library manually:
Use pip or setuptools to manage your installation (you might
need to run
- pip (preferred):
$ pip install --upgrade google-api-python-client
easy_installtool included in the setuptools package:
$ easy_install --upgrade google-api-python-client
Download the latest client
library for Python, unpack the code, and run
python setup.py install