sanic-otel-splunk
Testing - Instrumenting Sanic framework with Opentelemetry
Test with python 3.8.10, sanic 20.12.2
Step to instrument
- pip install -r requirements.txt
- install Splunk Otel Collector
- export required parameters
export OTEL_SERVICE_NAME='xxx'
export OTEL_EXPORTER_OTLP_ENDPOINT='http://localhost:4317'
export OTEL_RESOURCE_ATTRIBUTES='deployment.environment=xxx'
- run
python3 app.py
- check span by running
lynx http://localhost:55679/debug/tracez