You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@skywalking.apache.org by ��������� <94...@gmail.com> on 2019/11/26 12:14:25 UTC

How can I customer the trace Id with skywalking?

According my company  already had the ID generation algorithm to generate the trace Id,
which  it was in used. 
And  I find the  skywalking,the trace Id was default generation , and I can't extend it. 
Also I find the  `ContextManagerExtendService`  can do some thing before the traceContext created .
But the only way I can do was extend the `TraceIgnoreExtendService` and Override the `createTraceContext` method. 
I think the better way was the skywalking create a default `TraceContext` to let user how to modify it.
just like what I confuse in this code

https://github.com/apache/skywalking/commit/e0b7306e5ddae91adc0faf09f505dee9401ded01

After all I am not good at English. hope some people  know what I say.


Re: How can I customer the trace Id with skywalking?

Posted by 吴晟 Sheng Wu <wu...@foxmail.com>.
Hi, Zhuosi Chen


ID mechanism lock in private has reason, which is
Our analysis, storage, protocol and sampling are based on this. There is no point to provide extension.&nbsp;


And you should,&nbsp;Mail to&nbsp;dev-subscribe@skywalking.apache.org, follow the reply to subscribe the mail list. Then you could send and receive reply from the mail list. This time, I did manually.


Sheng&nbsp;Wu&nbsp;吴晟

From&nbsp;Wu&nbsp;Sheng&nbsp;'s&nbsp;phone.



------------------ Original ------------------
From: 陈卓思 <94muxin@gmail.com&gt;
Date: Tue,Nov 26,2019 8:29 PM
To: dev <dev@skywalking.apache.org&gt;
Subject: Re: How can I customer the trace Id with skywalking?



According my company&nbsp; already had the ID generation algorithm to generate the trace Id,
which&nbsp; it was in used. 
And&nbsp; I find the&nbsp; skywalking,the trace Id was default generation , and I can't extend it. 
Also I find the&nbsp; `ContextManagerExtendService`&nbsp; can do some thing before the traceContext created .
But the only way I can do was extend the `TraceIgnoreExtendService` and Override the `createTraceContext` method. 
I think the better way was the skywalking create a default `TraceContext` to let user how to modify it.
just like what I confuse in this code

https://github.com/apache/skywalking/commit/e0b7306e5ddae91adc0faf09f505dee9401ded01

After all I am not good at English. hope some people&nbsp; know what I say.