Skip to content

Commit 9cf5b72

Browse files
committed
Document disabling the on-by-default gRPC/GAX transport for pubsub/logging.
Addresses: #2085 (comment)
1 parent 46b21c9 commit 9cf5b72

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

docs/logging-usage.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Authentication and Configuration
1313
to interact with. If you are Google App Engine or Google Compute Engine
1414
this will be detected automatically.
1515

16+
- The library now enables the ``gRPC`` transport for the logging API by
17+
default, assuming that the required dependencies are installed and
18+
importable. To *disable* this transport, set the
19+
:envvar:`GCLOUD_DISABLE_GAX` environment variable to a non-empty string,
20+
e.g.: ``$ export GCLOUD_DISABLE_GAX=1``.
21+
1622
- After configuring your environment, create a
1723
:class:`Client <gcloud.logging.client.Client>`
1824

docs/pubsub-usage.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ Authentication / Configuration
77
- Use :class:`Client <gcloud.pubsub.client.Client>` objects to configure
88
your applications.
99

10+
- In addition to any authentication configuration, you should also set the
11+
:envvar:`GCLOUD_PROJECT` environment variable for the project you'd like
12+
to interact with. If you are Google App Engine or Google Compute Engine
13+
this will be detected automatically.
14+
15+
- The library now enables the ``gRPC`` transport for the pubsub API by
16+
default, assuming that the required dependencies are installed and
17+
importable. To *disable* this transport, set the
18+
:envvar:`GCLOUD_DISABLE_GAX` environment variable to a non-empty string,
19+
e.g.: ``$ export GCLOUD_DISABLE_GAX=1``.
20+
1021
- :class:`Client <gcloud.pubsub.client.Client>` objects hold both a ``project``
1122
and an authenticated connection to the PubSub service.
1223

0 commit comments

Comments
 (0)