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

Commit 7e671ef

Browse files
authored
README: Update stale instructions. (#340)
1 parent 6538308 commit 7e671ef

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

README.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ OpenCensus for Python - A stats collection and distributed tracing framework
2323
Installation & basic usage
2424
--------------------------
2525

26-
1. Install the opencensus-trace package using `pip`_ or `pipenv`_:
26+
1. Install the opencensus package using `pip`_ or `pipenv`_:
2727

2828
::
2929

@@ -41,14 +41,16 @@ Installation & basic usage
4141
.. _pip: https://pip.pypa.io
4242
.. _pipenv: https://docs.pipenv.org/
4343

44-
3. If you want to use the unreleased packages (like stats and tags), you need to build the package from source using the below commands: (The stats and tags packages are expected to be released in 0.1.6)
44+
3. Initialize a view_manager and a stats_recorder for your application:
4545

46-
::
46+
.. code:: python
47+
48+
from opencensus.stats import stats as stats_module
49+
50+
stats = stats_module.Stats()
51+
view_manager = stats.view_manager
52+
stats_recorder = stats.stats_recorder
4753
48-
git clone https://github.com/census-instrumentation/opencensus-python.git
49-
cd opencensus-python
50-
python setup.py bdist_wheel
51-
pip install dist/*
5254
5355
Usage
5456
-----

0 commit comments

Comments
 (0)