GitXplorerGitXplorer
i

demo-observability

public
4 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
29de89233e61e6574a4cd71333bc7caa4f386cb5

Add some explanations

iiblancasa committed a year ago
Verified
5f0dd95d6ffa35d70855ab30e72d299bfbf48570

Add requirements

iiblancasa committed a year ago
Verified
dce4302163d4889050ad5be9f0eb9d1699955ce9

Add demo applications

iiblancasa committed a year ago
Verified
1612d16dddec74e0ffa4c47bf27750bf76dc2a99

Initial commit

iiblancasa committed a year ago

README

The README file for this repository.

demo-observability

Tools

  1. docker or podman
  2. python (tested with 3.11.5)

Start the infrastructure

# Start the OpenTelemetry Collector and the Jaeger instance
cd infrastructure && ./start.sh

Access Jaeger from your brownser: http://localhost:16686/

Install the dependencies

# Install the packages needed to run the demos
pip install -r requirements.txt

Run the demos

Automatic instrumentation

cd automatic
opentelemetry-instrument \
    --service_name my-app-using-automatic-inst \
    --traces_exporter otlp \
    --metrics_exporter otlp \
    --exporter_otlp_endpoint 0.0.0.0:4317 \
    --exporter_otlp_insecure=true \
    flask run

Manual instrumentation

cd manual
flask run

Both instrumentations

cd both
opentelemetry-instrument \
    --service_name my-app-using-both-inst \
    --traces_exporter otlp \
    --metrics_exporter otlp \
    --exporter_otlp_endpoint 0.0.0.0:4317 \
    --exporter_otlp_insecure=true \
    flask run