Skip to content

quickwit-oss/tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorials

Tracing

Setup

  1. Clone the repository and go to the tracing directory

  2. Create a virtual environment

python3 -m venv . && source ./bin/activate
  1. Install python dependencies
pip install flask
# Installs the API, SDK, and the opentelemetry-bootstrap and opentelemetry-instrument tools
pip install opentelemetry-distro 
# Tool for automatic instrumentation.
opentelemetry-bootstrap -a install
  1. Install Quickwit and start a server
curl -L https://install.quickwit.io | sh
cd quickwit-*
./quickwit run

Auto-instrumentation

Start your app with my_instrumented_app script.

OTEL_METRICS_EXPORTER=none \ # We don't need metrics
OTEL_SERVICE_NAME=my_app \
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:7281 \
opentelemetry-instrument python my_instrumented_app.py

Now hit the endpoint http://localhost:5000/process-ip, it will send traces to Quickwit.

Manual instrumentation

Start your app with my_manually_instrumented_app script.

python my_manually_instrumented_app.py

Now hit the endpoint http://localhost:5000/process-ip, it will send traces to Quickwit.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •