Skip to content

wwongpai/sanic-otel-splunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

sanic-otel-splunk

Testing - Instrumenting Sanic framework with Opentelemetry

Test with python 3.8.10, sanic 20.12.2

Step to instrument

  1. pip install -r requirements.txt
  2. install Splunk Otel Collector
  3. export required parameters
export OTEL_SERVICE_NAME='xxx'
export OTEL_EXPORTER_OTLP_ENDPOINT='http://localhost:4317'
  1. run
python3 app.py
  1. check span by running
lynx http://localhost:55679/debug/tracez
  1. Call / enpoint
curl localhost:8000/

About

Testing - Instrumenting Sanic framework with Opentelemetry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages