Skip to content

Commit ffc71ff

Browse files
Merge pull request #52 from lightstep/sarah/LS-5226
LS-5226: Add proto code and instructions
2 parents 10cb04b + 816fb2c commit ffc71ff

File tree

4 files changed

+887
-1
lines changed

4 files changed

+887
-1
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,9 @@ thrift:
6767
thrift -r --gen py -out /out /data/crouton.thrift
6868
python-modernize -w $(PWD)/lightstep/crouton/
6969
rm -rf lightstep/crouton/ReportingService-remote
70+
71+
# LightStep-specific: rebuilds the LightStep protobuf files.
72+
proto:
73+
protoc --proto_path "$(PWD)/../googleapis:$(PWD)/../lightstep-tracer-common/" \
74+
--python_out="$(PWD)/lightstep" \
75+
collector.proto

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,22 @@ Only required for LightStep developers
4040
pip install modernize
4141
```
4242

43+
* [Protobuf Python Compiler](http://google.github.io/proto-lens/installing-protoc.html)
44+
45+
Only required for LightStep developers
46+
```python
47+
brew install protobuf
48+
```
49+
50+
* Generating the proto code
51+
```python
52+
cd ..
53+
git clone https://github.com/googleapis/googleapis.git
54+
git clone https://github.com/lightstep/lightstep-tracer-common.git
55+
cd lightstep-tracer-python
56+
make proto
57+
```
58+
4359
## Getting Started with Tracing
4460

4561
Please see the [example programs](examples/) for examples of how to use this library. In particular:

0 commit comments

Comments
 (0)