1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-10 09:50:58 +02:00
opentelemetry-go/example/http
ET bd1e174e60
Add "peer.service" semantic to standard attributes (#898)
Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io>
2020-07-06 11:36:49 -04:00
..
client Add "peer.service" semantic to standard attributes (#898) 2020-07-06 11:36:49 -04:00
server Add "peer.service" semantic to standard attributes (#898) 2020-07-06 11:36:49 -04:00
docker-compose.yml add Dockerfile and docker-compose.yml to run example code (#635) 2020-04-23 13:11:24 -07:00
Dockerfile Ensure golang alpine image is running golang-1.14 (#733) 2020-05-15 21:53:05 -07:00
go.mod Prepare for the v0.7.0 release (#876) 2020-06-26 13:54:33 -07:00
go.sum Update opentracing dependency (#885) 2020-07-01 17:51:06 -04:00
README.md add Dockerfile and docker-compose.yml to run example code (#635) 2020-04-23 13:11:24 -07:00

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 installed.

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

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:

docker-compose logs http-client

View the span generated by http-server in the logs:

docker-compose logs http-server

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

docker-compose down