example

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

README

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 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 mux-server and then exits. View the span generated by mux-server in the logs:

docker-compose logs mux-server

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

docker-compose down

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL