| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A monitor process who is able to bind incoming and outgoing HTTP requests so that applications do not need to propagate correlation headers.
Compile
$ gcc -o rbinder rbinder.c
Run server with rbinder. Example:
$ ./rbinder /usr/bin/python server.py
Scenario
Start service 2
$ PORT=9000 SERVICE_NAME=2 python ./demo/server.py
Start service 1
$ PORT=9876 SERVICE_NAME=1 ./rbinder /usr/bin/python ./demo/server.py
Request to service 1 with tracing headers
$ curl -H "X-Request-Id: 12345" localhost:9876
Service 2 output
WARNING:root:User-Agent: python-requests/2.18.3 Connection: keep-alive Host: localhost:9000 Accept: */* X-Request-Id: 12345 Accept-Encoding: gzip, deflate
$ docker-compose -f ./demo/docker-compose.yml up -d --build
Request to service 1 with tracing headers
$ curl -H "X-Request-Id: 12345" localhost:9876
Service 2 logs
$ docker-compose -f ./demo/docker-compose.yml logs service2 service2_1 | WARNING:root:Host: service2:9000 service2_1 | User-Agent: python-requests/2.18.4 service2_1 | Accept-Encoding: gzip, deflate service2_1 | Accept: */* service2_1 | Connection: keep-alive service2_1 | X-Request-Id: 12345
regarding stuff in this dir
Scenario
Scenario
Run
$ docker-compose -f ./demo/instrumented_services/docker-compose.yml up -d --build
Request
$ curl localhost:8000
Check Zipkin web interface
http://localhost:9411/
Scenario
Run
$ RBINDER=1 docker-compose -f ./demo/instrumented_services/docker-compose.yml up -d --build
Check Zipkin web interface
http://localhost:9411/
regarding stuff in this dir
Scenario
Scenario
Run
$ RBINDER='' docker-compose -f ./demo/proxied_services/docker-compose.yml up -d --build
Request
$ curl localhost:8000
Scenario
Run
$ RBINDER=1 docker-compose -f ./demo/proxied_services/docker-compose.yml up -d --build
Request
$ curl localhost:8000
Thanks to Envoy maintainers for their inspiring examples.
| Back | FazBrowse Home | New Git URL |