otelchi/examples/basic
2025-03-22 23:29:15 +13:00
..
docker-compose.yml Added the files for this package. 2025-03-22 23:29:15 +13:00
Dockerfile Added the files for this package. 2025-03-22 23:29:15 +13:00
go.mod Added the files for this package. 2025-03-22 23:29:15 +13:00
go.sum Added the files for this package. 2025-03-22 23:29:15 +13:00
main.go Added the files for this package. 2025-03-22 23:29:15 +13:00
Makefile Added the files for this package. 2025-03-22 23:29:15 +13:00
README.md Added the files for this package. 2025-03-22 23:29:15 +13:00

go-chi/chi instrumentation example

An HTTP server using go-chi/chi and instrumentation. The server has a /users/{id:[0-9]+} endpoint. The server generates span information to stdout.

These instructions expect you to have docker-compose installed.

Bring up the mux-server and mux-client services to run the example:

docker-compose up --detach mux-server mux-client

The mux-client service sends just one HTTP request to the mux-server and then exits. View the span generated by the mux-server in the logs:

docker-compose logs mux-server

Shut down the services when you are finished with the example:

docker-compose down