https://github.com/owais/debugging-with-benz
https://github.com/owais/debugging-with-benz
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/owais/debugging-with-benz
- Owner: owais
- Created: 2021-11-25T12:54:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-25T12:54:45.000Z (over 3 years ago)
- Last Synced: 2025-01-27T09:41:33.395Z (3 months ago)
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Followed this example closely
https://github.com/signalfx/tracing-examples/tree/main/opentelemetry-tracing/opentelemetry-python-tracing/flask-and-uwsgi
But couldn't work with this setup.
# My setup
- Python v3.10.0
- Pip v21.2.3# 20 Steps
1. Make sure it is python 3.6 or higher `python --version`2. Create virtual environment `python -m venv venv`
3. Activate the virtual environment `source venv/bin/activate`
4. Install `pip install 'splunk-opentelemetry[all]'`
5. Install `splunk-py-trace-bootstrap`
6. `export OTEL_SERVICE_NAME=benz-flask-uwsgi-manu-instr`
7. `export OTEL_TRACES_EXPORTER="jaeger-thrift-splunk"`
8. `export OTEL_EXPORTER_JAEGER_ENDPOINT=https://ingest..signalfx.com/v2/trace`
9. `export SPLUNK_ACCESS_TOKEN=`
10. Set environment name `export OTEL_RESOURCE_ATTRIBUTES=deployment.environment=jek-dev`
11. Set service version `export OTEL_RESOURCE_ATTRIBUTES=service.version=99.99.99`
12. View the packages before installing more `pip freeze`
13. Add `pip install opentelemetry-instrumentation-flask`
14. Add `pip install flask`
15. Add `pip install wheel`
16. Add `pip install uwsgi`
17. Add `pip install flask-restful`
18. Run the flask app with uwsgi using start_server.sh
19. Invoke request via http://127.0.0.1:5000/
20. Deactivate the virtual environment `deactivate`