opentelemetry-php/examples/traces/demo
Brett McBride 602ea8539f
move LoggerHolder to API (#893)
there is a requirement (and some outstanding todo's) to log errors and warnings from the API, so move
logger setup into API to facilitate this.
2022-12-12 09:01:17 +11:00
..
collector Cleaning up the examples a little (#741) 2022-07-03 11:58:47 +02:00
screenshots Cleaning up the examples a little (#741) 2022-07-03 11:58:47 +02:00
src move LoggerHolder to API (#893) 2022-12-12 09:01:17 +11:00
README.md Cleaning up the examples a little (#741) 2022-07-03 11:58:47 +02:00
docker-compose.yml Fix examples/traces/demo (#755) 2022-07-08 10:41:43 -04:00

README.md

Distributed Tracing Example

This example uses docker-compose, and illustrates the distributed tracing functionality of OpenTelemetry. An HTTP request to service-one will make multiple asynchronous HTTP requests, each of which is injected with a traceparent header.

All trace data is exported via grpc to an OpenTelemetry Collector, where they are forwarded to zipkin and jaeger.

The example is presented as a slim framework single-file application for simplicity, and uses Guzzle as an HTTP client. The same application source is used for all services.

Running the example

$ docker-compose run service-one composer install
$ docker-compose up
# in a separate terminal
$ curl localhost:8000/users/otel

Screenshots

Jaeger

Jaeger

Zipkin

Zipkin

Notes