1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-30 21:20:04 +02:00
opentelemetry-go/example/zipkin
OpenTelemetry Bot 30487e145c
dependabot updates Sat Apr 6 07:01:47 UTC 2024 (#5171)
build(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0 in /internal/tools
build(deps): bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from 0.49.0 to 0.50.0 in /example/dice
build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 in /sdk
2024-04-06 09:08:36 +02:00
..
docker-compose.yml [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
Dockerfile [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
go.mod dependabot updates Sat Apr 6 07:01:47 UTC 2024 (#5171) 2024-04-06 09:08:36 +02:00
go.sum dependabot updates Sat Apr 6 07:01:47 UTC 2024 (#5171) 2024-04-06 09:08:36 +02:00
main.go [chore] Simplify the license header (#4987) 2024-02-29 07:05:28 +01:00
README.md Fix existing markdown lint issues (#1866) 2021-04-30 10:51:19 -07:00

Zipkin Exporter Example

Send an example span to a Zipkin service. These instructions expect you have docker-compose installed.

Bring up the zipkin-collector service and example zipkin-client service to send an example trace:

docker-compose up --detach zipkin-collector zipkin-client

The zipkin-client service sends just one trace and exits. Retrieve the traceId generated by the zipkin-client service; should be the last line in the logs:

docker-compose logs --tail=1 zipkin-client

With the traceId you can view the trace from the zipkin-collector service UI hosted on port 9411, e.g. with traceId of f5695ba3b2ed00ea583fa4fa0badbeef: http://localhost:9411/zipkin/traces/f5695ba3b2ed00ea583fa4fa0badbeef

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

docker-compose down