See blog post N+1 problem by misusing Phoenix PubSub and how to spot it with OpenTelemetry.
Start Zipkin
docker run -d -p 9411:9411 openzipkin/zipkin
Set OTEL_SERVICE_NAME
environment variable
export OTEL_SERVICE_NAME=acme
Start your Phoenix server:
mix deps.get
mix ecto.setup
mix phx.server
or inside IEx with iex -S mix phx.server
Now you can visit localhost:4000/orders
.
localhost:9411/zipkin
.tagQuery=broadcaster
and Run Query.