mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2024-12-12 10:04:29 +02:00
452256cbf4
* Consolidate stdout exporter * Move config to own file and match project standard * Abstract Exporter into unified struct * Rename trace part of the exporter * Update import paths and configuration * Update tests * Update InstallNewPipeline to not return traceProvider It is a registered global, access it that way. * Update example_test * Update docs * Update example to be for whole package * Update metric output Closer match the span output. * Clean up span output Print as a batch and cleanup marshaling. * Correct spelling error in doc * Add Exporters README * Update Changelog * Propagate changes to rest of project * Lint fixes * Fix example test in metric SDK * Add disable config options for trace and metric Co-authored-by: Liz Fong-Jones <lizf@honeycomb.io> |
||
---|---|---|
.. | ||
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