Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Tracing AMQP Workflow #28
For a workflow as follows:
The exact similar case of jaegertracing/jaeger-client-python#122
From the code examples:
$tracer = $config->initTrace('Service A', '0.0.0.0:6831'); $spanContext = $tracer->extract(Formats\TEXT_MAP, $_SERVER); $serverSpan = $tracer->startSpan('get data', ['child_of' => $spanContext]); $serverSpan->addBaggageItem("version", "1.6.0"); $tracer->inject($serverSpan->getContext(), Formats\TEXT_MAP, $_SERVER);
Not with PHP, no. There is a Go package for that though https://github.com/opentracing-contrib/go-amqp not sure if it helps (new to this realm, sorry).
On the other hand, it is not necessary to track within AMQP, what matters is to trace the spans in the services (it's alright to skip AMQP for tracing).
Would that work? i.e. if we were to pass the SpanContext through message headers of AMQP somehow?