https://github.com/bryanl/apptracing-py
Exercises for Velocity OpenTracing workshop
https://github.com/bryanl/apptracing-py
Last synced: 9 months ago
JSON representation
Exercises for Velocity OpenTracing workshop
- Host: GitHub
- URL: https://github.com/bryanl/apptracing-py
- Owner: bryanl
- Created: 2017-06-19T14:31:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T17:59:07.000Z (about 9 years ago)
- Last Synced: 2025-04-13T07:15:46.392Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 492 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Velocity 2017: Python AppTracing Exercise
To fetch the source:
`git clone git@github.com:bryanl/apptracing-py.git`
## Getting started
1. Update docker compose to latest version: `pip install -U docker-compose`
1. Create docker environment: `docker-compose up -d`
1. Create database: `make create-db`
1. Import test data: `make import-people`
1. Install python dependencies: `pip install -r requirements.txt`
Exercises:
* [Tracing Functions](functions)
* [Exploring a bigger app](app)
## Initializing Jaeger in Python
```python
from jaeger_client import Config
config = Config(
config={ # usually read from some yaml config
'sampler': {
'type': 'const',
'param': 1,
},
'logging': True,
},
service_name='service',
)
tracer = config.initialize_tracer()
```