Tracing is about Spans, inter-process propagation and active span management
X-B3-TraceId: 1250938620936823095802313
X-B3-SpanId: 12435243758
X-B3-ParentSpanId: 1245675313
X-B3-Sampled: 1
PHP ZipKin support library
https://github.com/wdalmut/php-zipkin
$span = new ServerReceive(
"get_users", // method name
"oauth2", // service name
"auth.corley:80" // IP:Port
);
$span->sent();
$span = new ClientSend(
"get_users", // method name
"oauth2", // service name
"auth.corley:80" // IP:Port
);
$span->receive();
$span->childOf($parentSpan);
$span = $tracer->findOneBy("kind", "root");
$span
->getBinaryAnnotations()
->set("error", true);
$span->add("an_event");
doctrine:
dbal:
logging: true
thanks to doctrine events
http.handler:
class: GuzzleHttp\Handler\CurlHandler
http.stack:
class: GuzzleHttp\HandlerStack
calls:
- ["setHandler", ["@http.handler"]]
tags:
- { name: corley.auth.guzzle_handler_stack }
http.client:
class: GuzzleHttp\Client
arguments:
- {"handler": "@http.stack"}
thanks to Guzzle middleware
Richard Feynman