Skip to content

Commit 8b3a186

Browse files
Katia BazziKatia Bazzi
authored andcommitted
Add documentation on how to run examples
1 parent 6ab7710 commit 8b3a186

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ Please see the [example programs](examples/) for examples of how to use this lib
1818
* [Trivial Example](examples/trivial/main.py) shows how to use the library on a single host.
1919
* [Context in Headers](examples/http/context_in_headers.py) shows how to pass a `TraceContext` through `HTTP` headers.
2020

21+
You can run the examples by doing:
22+
```python
23+
tox
24+
source .tox/py27/bin/activate
25+
python examples/nontrivial/main.py
26+
```
27+
2128
Or if your python code is already instrumented for OpenTracing, you can simply switch to LightStep's implementation with:
2229

2330
```python

0 commit comments

Comments
 (0)