Skip to content

Commit

Permalink
add http example README.md
Browse files Browse the repository at this point in the history
With instructions on how to use docker-compose to run the example.

Signed-off-by: Andrew Hsu <[email protected]>
  • Loading branch information
andrewhsu committed Apr 17, 2020
1 parent 1e1b5a4 commit a0eb377
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions example/http/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# HTTP Client-Server Example

An HTTP client connects to an HTTP server. They both generate span information to `stdout`.
These instructions expect you have [docker-compose](https://docs.docker.com/compose/) installed.

Bring up the `http-server` and `http-client` services to run the example:
```sh
docker-compose up --detach http-server http-client
```

The `http-client` service sends just one HTTP request to `http-server` and then exits. View the span generated to `stdout` in the logs:
```sh
docker-compose logs http-client
```

View the span generated by `http-server` in the logs:
```sh
docker-compose logs http-server
```

Shut down the services when you are finished with the example:
```sh
docker-compose down
```

0 comments on commit a0eb377

Please sign in to comment.