You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A Google Cloud project. You can `create one here <https://console.cloud.google.com/projectcreate>`_.
12
+
* Enable Cloud Trace API (listed in the Cloud Console as Stackdriver Trace API) in the project `here <https://console.cloud.google.com/apis/library?q=cloud%20trace&filter=visibility:public>`_.
13
+
* If the page says "API Enabled" then you're done! No need to do anything.
14
+
* Enable Default Application Credentials by creating setting `GOOGLE_APPLICATION_CREDENTIALS <https://cloud.google.com/docs/authentication/getting-started>`_ or by `installing gcloud sdk <https://cloud.google.com/sdk/install>`_ and calling ``gcloud auth application-default login``.
14
15
15
16
* Installation
16
17
@@ -20,12 +21,11 @@ To use this exporter you first need to:
20
21
pip install opentelemetry-sdk
21
22
pip install opentelemetry-exporter-cloud-trace
22
23
23
-
* Run example locally
24
+
* Run an example locally
24
25
25
-
.. code-block:: sh
26
-
27
-
cd opentelemetry-python/docs/examples/cloud_trace_exporter
28
-
python basic_trace.py
26
+
.. literalinclude:: basic_trace.py
27
+
:language: python
28
+
:lines: 1-
29
29
30
30
Checking Output
31
31
--------------------------
@@ -47,4 +47,33 @@ Running basic_trace.py hangs:
47
47
48
48
Getting error ``google.api_core.exceptions.ResourceExhausted: 429 Resource has been exhausted``:
* Check that you've enabled the `Cloud Trace (Stackdriver Trace) API <https://console.cloud.google.com/apis/library?q=cloud_trace>`_
50
+
* Check that you've enabled the `Cloud Trace (Stackdriver Trace) API <https://console.cloud.google.com/apis/library?q=cloud%20trace&filter=visibility:public>`_
0 commit comments