A simple example for how to setup OpenTelemetry in code and send traces to aspecto
You need to set in tracing.py
:
"your-service-name"
- to the name of your service, which you can later be used to search / filter / alert / sample etc in aspecto platform"your-aspecto-token"
which you can find here
This project uses pipenv
. To run:
pipenv install
pipenv run python main.py