mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-01-12 02:28:07 +02:00
3b01a854d1
* Make the stdout exporter its own package Follow the pattern of the other exporters. * Update dependabot with stdout exporter * Add replace directives for stdout exporter * Remove outdated example test from metric SDK * go mod tidy * Update othttp example test Remove unused stdout exporter. * Remove tests in API that depend on stdout exporter The global package does not need to be validated with the SDK. A more properly constructed end-to-end integration test should be built if this is actually needed. * Add replace clause for otel in stdout go.mod |
||
---|---|---|
.. | ||
client | ||
server | ||
docker-compose.yml | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
README.md |
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