Opentracing span name from variable
Hi all, is it possible to use a variable as span name? for example, can i use uri as span name so in zipkin it's visible as service: Thanks -- Bonini Andrea
Re: [OT PATCH 0/2] opentracing: use of the context name without prefix
Great work, i testet it right now and work like a charm! Thank u Zaga, good work! Il giorno gio 15 apr 2021 alle ore 08:40 Willy Tarreau ha scritto: > On Wed, Apr 14, 2021 at 12:56:39PM +0200, Miroslav Zagorac wrote: > > Hello all, > > > > the next two patches allow you to transfer the OpenTracing context via an > > HTTP headers without using a name prefix. > > > > This is very useful when transferring context from or to some other > process > > that cannot add or remove a prefix from that data. > > Merged, thanks Miroslav! > Willy > -- Bonini Andrea
Re: haproxy 2.4 opentracing using x-b3-traceid header
I've tried to add header adding the context name but with no luck (i thinks it's done after ot read the request) here an example of headers that i receive X-B3-TraceId: 48485a3953bb6124 X-B3-ParentSpanId: 48485a3953bb6124 X-B3-SpanId: 42e1e27066118383 X-B3-Sampled: 1 X-B3-Flags: 0 here the documentation about propagation (there's more format for the propagation...but this is the more common) https://github.com/openzipkin/b3-propagation Thanks Il giorno ven 9 apr 2021 alle ore 13:52 Miroslav Zagorac < miros...@zagorac.name> ha scritto: > On 04/09/2021 01:40 PM, Andrea Bonini wrote: > > Hi Zaga, > > thank you for the explanation. My problem is that the external service > send > > the span info in header as x-b3-* format (the opentracing default one). > > For reading it, which extract context must i configure? if i don't > > understand wrong if i want read x-b3-* header i must use a context with > > empty name that is not allowed. > > > > Hello Andrea, > > in this case the ability to accept the context with an empty name should > be added to the OpenTracing filter. I will think about it. If this is > not a problem, send the header content for one such example (only those > headers related to OpenTracing, with complete name and content). > > Thank you for the question and comment. > > Best regards, > > -- > Zaga > > What can change the nature of a man? > -- Bonini Andrea
Re: haproxy 2.4 opentracing using x-b3-traceid header
Hi Zaga, thank you for the explanation. My problem is that the external service send the span info in header as x-b3-* format (the opentracing default one). For reading it, which extract context must i configure? if i don't understand wrong if i want read x-b3-* header i must use a context with empty name that is not allowed. Thanks again Il giorno ven 9 apr 2021 alle ore 10:43 Miroslav Zagorac < miros...@zagorac.name> ha scritto: > On 04/08/2021 01:48 PM, Andrea Bonini wrote: > > Hi everyone, > > > > i have a question about opentracing addon. Is there a way for using > headers > > info about a trace created from an outside service? > > > > what i want is using x-b3-traceid header from an incoming request as > > traceid and use spanid as parentid > > > > Thanks > > > > Hello Andrea, > > you are interested in propagating the span context from one service to > another. This can be done by setting up additional http headers in the > service that created the tracing process that contain the span context > which is then read in another process that wants to add its data. This > can be done via the ‘inject’ and ‘extract’ keywords in the opentracing > filter configuration. In this way they can automatically set up and > read the contents of the headers over which the span context is > transmitted. > > In the test directory there is one example that uses such a mode of > operation, where two haproxy processes are started, the first of which > passes the span context to the second. The example is run via the shell > script test/run-fe-be.sh and thus starts the frontend haproxy process > (fe) which passes the span context to the backend haproxy process (be). > Configurations are located in the test/fe and test/be directories. > > For more explanations read the README file from the ot directory. > > Best regards, > > -- > Zaga > > What can change the nature of a man? > -- Bonini Andrea
haproxy 2.4 opentracing using x-b3-traceid header
Hi everyone, i have a question about opentracing addon. Is there a way for using headers info about a trace created from an outside service? what i want is using x-b3-traceid header from an incoming request as traceid and use spanid as parentid Thanks -- Bonini Andrea