Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit aae705e

Browse files
jpoehneltliyanhui1228
authored andcommitted
move google-cloud-trace to extras (#162)
1 parent 023ad8f commit aae705e

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

docs/trace/usage.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Installation & basic usage
2626
pip install opencensus-trace
2727
pipenv install opencensus-trace
2828

29+
# install the Stackdriver exporter by including the extras package
30+
pip install opencensus-trace[stackdriver]
31+
pipenv install opencensus-trace[stackdriver]
32+
2933
2. Initialize a tracer for application:
3034

3135
.. code:: python

setup.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@
1717
import io
1818
from setuptools import setup, find_packages
1919

20+
extras = {
21+
"stackdriver": ['google-cloud-trace>=0.17.0, <0.18dev']
22+
}
23+
2024
install_requires = [
21-
'google-cloud-trace>=0.17.0, <0.18dev',
25+
'google-api-core >= 0.1.1, < 0.2.0dev',
2226
]
2327

2428
setup(
@@ -43,6 +47,7 @@
4347
include_package_data=True,
4448
long_description=open('README.rst').read(),
4549
install_requires=install_requires,
50+
extras_require=extras,
4651
license='Apache-2.0',
4752
packages=find_packages(),
4853
namespace_packages=[],

0 commit comments

Comments
 (0)