Skip to content

oursky/otel-example-python

Repository files navigation

otel-example-python

This is an OpenTelemetry example of a Python project.

This Python project uses

  • FastAPI
  • SQLAlchemy

How to run this

make secret
make setup
docker compose up -d
make start

And then you visit http://localhost:8000 and refresh a few times. Wait 5 seconds.

Finally you visit http://localhost:9090, you will see these metrics:

  • http_server_duration_milliseconds_{bucket,count,sum}
  • db_client_connections_usage

You will see that the metrics provided the open source instrumentation packages are not very good. You need to write your own instrumentation or metrics collection to collect useful metrics.

How do I do this step by step?

Follow the the commit history of the repository. The commits are organized in a way that are expected to be followed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published