128 bit Sleuth Trace ID on PCF












0















I am trying to use the 128 bit Sleuth generated TraceId as a unique identifier for request hitting my controller. I understand that the default traceId is 64 and to change it, I have to add the following to the application.properties:



spring.sleuth.trace-id128=true



This works on my local but when I deploy it to PCF,the trace ID is 64 bits. I have created a sample project that only has a simple controller to demonstrate this.



@RestController
public class Controller {
private Logger logger = LoggerFactory.getLogger(Controller.class);
@Autowired
private Tracer tracer;
@GetMapping("/")
public void test(){
logger.info("LOGGED +["+tracer.currentSpan().context().traceIdString()+"]");
}
}


In my local, it will print:



com.example.demo.Controller: LOGGED + [5bfcb33c9d564481479f2c212ec08143]



In PCF, it prints:



om.example.demo.Controller : LOGGED + [97a1168857dc7088]



Is PCF overwriting this configuration?



Updates



Included "X-B3-TraceId" and "X-B3-SpanId" in my request and the traceId is now 128bit but not the same string as what was passed in the request header.



Details from log










share|improve this question





























    0















    I am trying to use the 128 bit Sleuth generated TraceId as a unique identifier for request hitting my controller. I understand that the default traceId is 64 and to change it, I have to add the following to the application.properties:



    spring.sleuth.trace-id128=true



    This works on my local but when I deploy it to PCF,the trace ID is 64 bits. I have created a sample project that only has a simple controller to demonstrate this.



    @RestController
    public class Controller {
    private Logger logger = LoggerFactory.getLogger(Controller.class);
    @Autowired
    private Tracer tracer;
    @GetMapping("/")
    public void test(){
    logger.info("LOGGED +["+tracer.currentSpan().context().traceIdString()+"]");
    }
    }


    In my local, it will print:



    com.example.demo.Controller: LOGGED + [5bfcb33c9d564481479f2c212ec08143]



    In PCF, it prints:



    om.example.demo.Controller : LOGGED + [97a1168857dc7088]



    Is PCF overwriting this configuration?



    Updates



    Included "X-B3-TraceId" and "X-B3-SpanId" in my request and the traceId is now 128bit but not the same string as what was passed in the request header.



    Details from log










    share|improve this question



























      0












      0








      0








      I am trying to use the 128 bit Sleuth generated TraceId as a unique identifier for request hitting my controller. I understand that the default traceId is 64 and to change it, I have to add the following to the application.properties:



      spring.sleuth.trace-id128=true



      This works on my local but when I deploy it to PCF,the trace ID is 64 bits. I have created a sample project that only has a simple controller to demonstrate this.



      @RestController
      public class Controller {
      private Logger logger = LoggerFactory.getLogger(Controller.class);
      @Autowired
      private Tracer tracer;
      @GetMapping("/")
      public void test(){
      logger.info("LOGGED +["+tracer.currentSpan().context().traceIdString()+"]");
      }
      }


      In my local, it will print:



      com.example.demo.Controller: LOGGED + [5bfcb33c9d564481479f2c212ec08143]



      In PCF, it prints:



      om.example.demo.Controller : LOGGED + [97a1168857dc7088]



      Is PCF overwriting this configuration?



      Updates



      Included "X-B3-TraceId" and "X-B3-SpanId" in my request and the traceId is now 128bit but not the same string as what was passed in the request header.



      Details from log










      share|improve this question
















      I am trying to use the 128 bit Sleuth generated TraceId as a unique identifier for request hitting my controller. I understand that the default traceId is 64 and to change it, I have to add the following to the application.properties:



      spring.sleuth.trace-id128=true



      This works on my local but when I deploy it to PCF,the trace ID is 64 bits. I have created a sample project that only has a simple controller to demonstrate this.



      @RestController
      public class Controller {
      private Logger logger = LoggerFactory.getLogger(Controller.class);
      @Autowired
      private Tracer tracer;
      @GetMapping("/")
      public void test(){
      logger.info("LOGGED +["+tracer.currentSpan().context().traceIdString()+"]");
      }
      }


      In my local, it will print:



      com.example.demo.Controller: LOGGED + [5bfcb33c9d564481479f2c212ec08143]



      In PCF, it prints:



      om.example.demo.Controller : LOGGED + [97a1168857dc7088]



      Is PCF overwriting this configuration?



      Updates



      Included "X-B3-TraceId" and "X-B3-SpanId" in my request and the traceId is now 128bit but not the same string as what was passed in the request header.



      Details from log







      spring pivotal-cloud-foundry spring-cloud-sleuth






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 5 '18 at 6:54







      Yan Han

















      asked Nov 27 '18 at 3:20









      Yan HanYan Han

      11




      11
























          1 Answer
          1






          active

          oldest

          votes


















          0














          It's possible that PCF, more specifically the Gorouter, is creating the trace id and that is getting propagated onto your app, which instead of creating a new 128-bit trace id is reusing the existing 64-bit trace id.



          PCF has support for Zipkin Tracing and this is enabled by default, so it's on in most environments.



          https://docs.pivotal.io/pivotalcf/2-3/adminguide/zipkin_tracing.html



          According to the docs, the Gorouter will check for the existence of Zipkin headers on incoming requests and if they are not present will create them.




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are not present in the request, the Gorouter generates values for these and inserts the headers into the request forwarded to an application.




          and




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are present in the request, the Gorouter forwards them unmodified.




          https://docs.pivotal.io/pivotalcf/2-3/concepts/http-routing.html#zipkin-headers



          You can see here that it's creating a 64-bit trace id.



          https://github.com/cloudfoundry/gorouter/blob/master/handlers/zipkin.go#L49-L57



          You could confirm by sending a request with the headers X-B3-TraceId and X-B3-SpanId set. In this case Gorouter should forward them along unmodified.



          Ex: curl -v -H 'X-B3-TraceId: 5bfcb33c9d564481479f2c212ec08143' -H X-B3-SpanId: 5bfcb33c9d564481479f2c212ec08143' https://your-cool-app.com/test.






          share|improve this answer
























          • Thanks for your reply. I tried what you mentioned and it seems that when i include a 128 bit trace and span id in my request header, the trace and span Id in my application does indeed become 128 bit, but it is different from what i specified in my request. In fact, regardless of the value I indicated, the propagated traceId and spanId is always "5c05f313f7d726cd1509f63585df7a7c"

            – Yan Han
            Dec 4 '18 at 3:24











          • I'm not certain why that would be the case. How are you monitoring this? If you're setting those headers they are just being passed through by Gorouter so it's not going to modify them. If you look at cf logs there should be an [RTR] log entry which is generated by the Gorouter. It will have the header value, can you try running that to confirm that it is at least getting the header value you specified? From there, maybe try logging the headers that are coming into the request in your app. You can try to break down where the value is being changed.

            – Daniel Mikusa
            Dec 4 '18 at 4:55











          • Hi @Daniel, thank you for your reply once again. I have monitored the logs from the PCF Application Manager and included a link in the updated question for a screenshot of the log. My mistake on the comment that the traceId always take on a particular value, that is not true. However, what I observe is that in the 128bit traceId, the first 3 hex does not change. It is always 5c0. It seems like it is related to timestamps?

            – Yan Han
            Dec 5 '18 at 7:06













          • I'm not sure. The trace id you're logging in LOGGED +[..] is produced by Sleuth. I don't know off hand the exact method it's using to create the trace/span ids. You'd need to look at the code or maybe post a different question if that's something you want to know more about.

            – Daniel Mikusa
            Dec 5 '18 at 14:43











          • It should be the same traceId that is passed into the TraceContext if I am not wrong. Alright sure! Thank you for your help Daniel!

            – Yan Han
            Dec 6 '18 at 8:32











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53492240%2f128-bit-sleuth-trace-id-on-pcf%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          It's possible that PCF, more specifically the Gorouter, is creating the trace id and that is getting propagated onto your app, which instead of creating a new 128-bit trace id is reusing the existing 64-bit trace id.



          PCF has support for Zipkin Tracing and this is enabled by default, so it's on in most environments.



          https://docs.pivotal.io/pivotalcf/2-3/adminguide/zipkin_tracing.html



          According to the docs, the Gorouter will check for the existence of Zipkin headers on incoming requests and if they are not present will create them.




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are not present in the request, the Gorouter generates values for these and inserts the headers into the request forwarded to an application.




          and




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are present in the request, the Gorouter forwards them unmodified.




          https://docs.pivotal.io/pivotalcf/2-3/concepts/http-routing.html#zipkin-headers



          You can see here that it's creating a 64-bit trace id.



          https://github.com/cloudfoundry/gorouter/blob/master/handlers/zipkin.go#L49-L57



          You could confirm by sending a request with the headers X-B3-TraceId and X-B3-SpanId set. In this case Gorouter should forward them along unmodified.



          Ex: curl -v -H 'X-B3-TraceId: 5bfcb33c9d564481479f2c212ec08143' -H X-B3-SpanId: 5bfcb33c9d564481479f2c212ec08143' https://your-cool-app.com/test.






          share|improve this answer
























          • Thanks for your reply. I tried what you mentioned and it seems that when i include a 128 bit trace and span id in my request header, the trace and span Id in my application does indeed become 128 bit, but it is different from what i specified in my request. In fact, regardless of the value I indicated, the propagated traceId and spanId is always "5c05f313f7d726cd1509f63585df7a7c"

            – Yan Han
            Dec 4 '18 at 3:24











          • I'm not certain why that would be the case. How are you monitoring this? If you're setting those headers they are just being passed through by Gorouter so it's not going to modify them. If you look at cf logs there should be an [RTR] log entry which is generated by the Gorouter. It will have the header value, can you try running that to confirm that it is at least getting the header value you specified? From there, maybe try logging the headers that are coming into the request in your app. You can try to break down where the value is being changed.

            – Daniel Mikusa
            Dec 4 '18 at 4:55











          • Hi @Daniel, thank you for your reply once again. I have monitored the logs from the PCF Application Manager and included a link in the updated question for a screenshot of the log. My mistake on the comment that the traceId always take on a particular value, that is not true. However, what I observe is that in the 128bit traceId, the first 3 hex does not change. It is always 5c0. It seems like it is related to timestamps?

            – Yan Han
            Dec 5 '18 at 7:06













          • I'm not sure. The trace id you're logging in LOGGED +[..] is produced by Sleuth. I don't know off hand the exact method it's using to create the trace/span ids. You'd need to look at the code or maybe post a different question if that's something you want to know more about.

            – Daniel Mikusa
            Dec 5 '18 at 14:43











          • It should be the same traceId that is passed into the TraceContext if I am not wrong. Alright sure! Thank you for your help Daniel!

            – Yan Han
            Dec 6 '18 at 8:32
















          0














          It's possible that PCF, more specifically the Gorouter, is creating the trace id and that is getting propagated onto your app, which instead of creating a new 128-bit trace id is reusing the existing 64-bit trace id.



          PCF has support for Zipkin Tracing and this is enabled by default, so it's on in most environments.



          https://docs.pivotal.io/pivotalcf/2-3/adminguide/zipkin_tracing.html



          According to the docs, the Gorouter will check for the existence of Zipkin headers on incoming requests and if they are not present will create them.




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are not present in the request, the Gorouter generates values for these and inserts the headers into the request forwarded to an application.




          and




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are present in the request, the Gorouter forwards them unmodified.




          https://docs.pivotal.io/pivotalcf/2-3/concepts/http-routing.html#zipkin-headers



          You can see here that it's creating a 64-bit trace id.



          https://github.com/cloudfoundry/gorouter/blob/master/handlers/zipkin.go#L49-L57



          You could confirm by sending a request with the headers X-B3-TraceId and X-B3-SpanId set. In this case Gorouter should forward them along unmodified.



          Ex: curl -v -H 'X-B3-TraceId: 5bfcb33c9d564481479f2c212ec08143' -H X-B3-SpanId: 5bfcb33c9d564481479f2c212ec08143' https://your-cool-app.com/test.






          share|improve this answer
























          • Thanks for your reply. I tried what you mentioned and it seems that when i include a 128 bit trace and span id in my request header, the trace and span Id in my application does indeed become 128 bit, but it is different from what i specified in my request. In fact, regardless of the value I indicated, the propagated traceId and spanId is always "5c05f313f7d726cd1509f63585df7a7c"

            – Yan Han
            Dec 4 '18 at 3:24











          • I'm not certain why that would be the case. How are you monitoring this? If you're setting those headers they are just being passed through by Gorouter so it's not going to modify them. If you look at cf logs there should be an [RTR] log entry which is generated by the Gorouter. It will have the header value, can you try running that to confirm that it is at least getting the header value you specified? From there, maybe try logging the headers that are coming into the request in your app. You can try to break down where the value is being changed.

            – Daniel Mikusa
            Dec 4 '18 at 4:55











          • Hi @Daniel, thank you for your reply once again. I have monitored the logs from the PCF Application Manager and included a link in the updated question for a screenshot of the log. My mistake on the comment that the traceId always take on a particular value, that is not true. However, what I observe is that in the 128bit traceId, the first 3 hex does not change. It is always 5c0. It seems like it is related to timestamps?

            – Yan Han
            Dec 5 '18 at 7:06













          • I'm not sure. The trace id you're logging in LOGGED +[..] is produced by Sleuth. I don't know off hand the exact method it's using to create the trace/span ids. You'd need to look at the code or maybe post a different question if that's something you want to know more about.

            – Daniel Mikusa
            Dec 5 '18 at 14:43











          • It should be the same traceId that is passed into the TraceContext if I am not wrong. Alright sure! Thank you for your help Daniel!

            – Yan Han
            Dec 6 '18 at 8:32














          0












          0








          0







          It's possible that PCF, more specifically the Gorouter, is creating the trace id and that is getting propagated onto your app, which instead of creating a new 128-bit trace id is reusing the existing 64-bit trace id.



          PCF has support for Zipkin Tracing and this is enabled by default, so it's on in most environments.



          https://docs.pivotal.io/pivotalcf/2-3/adminguide/zipkin_tracing.html



          According to the docs, the Gorouter will check for the existence of Zipkin headers on incoming requests and if they are not present will create them.




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are not present in the request, the Gorouter generates values for these and inserts the headers into the request forwarded to an application.




          and




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are present in the request, the Gorouter forwards them unmodified.




          https://docs.pivotal.io/pivotalcf/2-3/concepts/http-routing.html#zipkin-headers



          You can see here that it's creating a 64-bit trace id.



          https://github.com/cloudfoundry/gorouter/blob/master/handlers/zipkin.go#L49-L57



          You could confirm by sending a request with the headers X-B3-TraceId and X-B3-SpanId set. In this case Gorouter should forward them along unmodified.



          Ex: curl -v -H 'X-B3-TraceId: 5bfcb33c9d564481479f2c212ec08143' -H X-B3-SpanId: 5bfcb33c9d564481479f2c212ec08143' https://your-cool-app.com/test.






          share|improve this answer













          It's possible that PCF, more specifically the Gorouter, is creating the trace id and that is getting propagated onto your app, which instead of creating a new 128-bit trace id is reusing the existing 64-bit trace id.



          PCF has support for Zipkin Tracing and this is enabled by default, so it's on in most environments.



          https://docs.pivotal.io/pivotalcf/2-3/adminguide/zipkin_tracing.html



          According to the docs, the Gorouter will check for the existence of Zipkin headers on incoming requests and if they are not present will create them.




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are not present in the request, the Gorouter generates values for these and inserts the headers into the request forwarded to an application.




          and




          If the X-B3-TraceId and X-B3-SpanId HTTP headers are present in the request, the Gorouter forwards them unmodified.




          https://docs.pivotal.io/pivotalcf/2-3/concepts/http-routing.html#zipkin-headers



          You can see here that it's creating a 64-bit trace id.



          https://github.com/cloudfoundry/gorouter/blob/master/handlers/zipkin.go#L49-L57



          You could confirm by sending a request with the headers X-B3-TraceId and X-B3-SpanId set. In this case Gorouter should forward them along unmodified.



          Ex: curl -v -H 'X-B3-TraceId: 5bfcb33c9d564481479f2c212ec08143' -H X-B3-SpanId: 5bfcb33c9d564481479f2c212ec08143' https://your-cool-app.com/test.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 28 '18 at 13:36









          Daniel MikusaDaniel Mikusa

          5,97511015




          5,97511015













          • Thanks for your reply. I tried what you mentioned and it seems that when i include a 128 bit trace and span id in my request header, the trace and span Id in my application does indeed become 128 bit, but it is different from what i specified in my request. In fact, regardless of the value I indicated, the propagated traceId and spanId is always "5c05f313f7d726cd1509f63585df7a7c"

            – Yan Han
            Dec 4 '18 at 3:24











          • I'm not certain why that would be the case. How are you monitoring this? If you're setting those headers they are just being passed through by Gorouter so it's not going to modify them. If you look at cf logs there should be an [RTR] log entry which is generated by the Gorouter. It will have the header value, can you try running that to confirm that it is at least getting the header value you specified? From there, maybe try logging the headers that are coming into the request in your app. You can try to break down where the value is being changed.

            – Daniel Mikusa
            Dec 4 '18 at 4:55











          • Hi @Daniel, thank you for your reply once again. I have monitored the logs from the PCF Application Manager and included a link in the updated question for a screenshot of the log. My mistake on the comment that the traceId always take on a particular value, that is not true. However, what I observe is that in the 128bit traceId, the first 3 hex does not change. It is always 5c0. It seems like it is related to timestamps?

            – Yan Han
            Dec 5 '18 at 7:06













          • I'm not sure. The trace id you're logging in LOGGED +[..] is produced by Sleuth. I don't know off hand the exact method it's using to create the trace/span ids. You'd need to look at the code or maybe post a different question if that's something you want to know more about.

            – Daniel Mikusa
            Dec 5 '18 at 14:43











          • It should be the same traceId that is passed into the TraceContext if I am not wrong. Alright sure! Thank you for your help Daniel!

            – Yan Han
            Dec 6 '18 at 8:32



















          • Thanks for your reply. I tried what you mentioned and it seems that when i include a 128 bit trace and span id in my request header, the trace and span Id in my application does indeed become 128 bit, but it is different from what i specified in my request. In fact, regardless of the value I indicated, the propagated traceId and spanId is always "5c05f313f7d726cd1509f63585df7a7c"

            – Yan Han
            Dec 4 '18 at 3:24











          • I'm not certain why that would be the case. How are you monitoring this? If you're setting those headers they are just being passed through by Gorouter so it's not going to modify them. If you look at cf logs there should be an [RTR] log entry which is generated by the Gorouter. It will have the header value, can you try running that to confirm that it is at least getting the header value you specified? From there, maybe try logging the headers that are coming into the request in your app. You can try to break down where the value is being changed.

            – Daniel Mikusa
            Dec 4 '18 at 4:55











          • Hi @Daniel, thank you for your reply once again. I have monitored the logs from the PCF Application Manager and included a link in the updated question for a screenshot of the log. My mistake on the comment that the traceId always take on a particular value, that is not true. However, what I observe is that in the 128bit traceId, the first 3 hex does not change. It is always 5c0. It seems like it is related to timestamps?

            – Yan Han
            Dec 5 '18 at 7:06













          • I'm not sure. The trace id you're logging in LOGGED +[..] is produced by Sleuth. I don't know off hand the exact method it's using to create the trace/span ids. You'd need to look at the code or maybe post a different question if that's something you want to know more about.

            – Daniel Mikusa
            Dec 5 '18 at 14:43











          • It should be the same traceId that is passed into the TraceContext if I am not wrong. Alright sure! Thank you for your help Daniel!

            – Yan Han
            Dec 6 '18 at 8:32

















          Thanks for your reply. I tried what you mentioned and it seems that when i include a 128 bit trace and span id in my request header, the trace and span Id in my application does indeed become 128 bit, but it is different from what i specified in my request. In fact, regardless of the value I indicated, the propagated traceId and spanId is always "5c05f313f7d726cd1509f63585df7a7c"

          – Yan Han
          Dec 4 '18 at 3:24





          Thanks for your reply. I tried what you mentioned and it seems that when i include a 128 bit trace and span id in my request header, the trace and span Id in my application does indeed become 128 bit, but it is different from what i specified in my request. In fact, regardless of the value I indicated, the propagated traceId and spanId is always "5c05f313f7d726cd1509f63585df7a7c"

          – Yan Han
          Dec 4 '18 at 3:24













          I'm not certain why that would be the case. How are you monitoring this? If you're setting those headers they are just being passed through by Gorouter so it's not going to modify them. If you look at cf logs there should be an [RTR] log entry which is generated by the Gorouter. It will have the header value, can you try running that to confirm that it is at least getting the header value you specified? From there, maybe try logging the headers that are coming into the request in your app. You can try to break down where the value is being changed.

          – Daniel Mikusa
          Dec 4 '18 at 4:55





          I'm not certain why that would be the case. How are you monitoring this? If you're setting those headers they are just being passed through by Gorouter so it's not going to modify them. If you look at cf logs there should be an [RTR] log entry which is generated by the Gorouter. It will have the header value, can you try running that to confirm that it is at least getting the header value you specified? From there, maybe try logging the headers that are coming into the request in your app. You can try to break down where the value is being changed.

          – Daniel Mikusa
          Dec 4 '18 at 4:55













          Hi @Daniel, thank you for your reply once again. I have monitored the logs from the PCF Application Manager and included a link in the updated question for a screenshot of the log. My mistake on the comment that the traceId always take on a particular value, that is not true. However, what I observe is that in the 128bit traceId, the first 3 hex does not change. It is always 5c0. It seems like it is related to timestamps?

          – Yan Han
          Dec 5 '18 at 7:06







          Hi @Daniel, thank you for your reply once again. I have monitored the logs from the PCF Application Manager and included a link in the updated question for a screenshot of the log. My mistake on the comment that the traceId always take on a particular value, that is not true. However, what I observe is that in the 128bit traceId, the first 3 hex does not change. It is always 5c0. It seems like it is related to timestamps?

          – Yan Han
          Dec 5 '18 at 7:06















          I'm not sure. The trace id you're logging in LOGGED +[..] is produced by Sleuth. I don't know off hand the exact method it's using to create the trace/span ids. You'd need to look at the code or maybe post a different question if that's something you want to know more about.

          – Daniel Mikusa
          Dec 5 '18 at 14:43





          I'm not sure. The trace id you're logging in LOGGED +[..] is produced by Sleuth. I don't know off hand the exact method it's using to create the trace/span ids. You'd need to look at the code or maybe post a different question if that's something you want to know more about.

          – Daniel Mikusa
          Dec 5 '18 at 14:43













          It should be the same traceId that is passed into the TraceContext if I am not wrong. Alright sure! Thank you for your help Daniel!

          – Yan Han
          Dec 6 '18 at 8:32





          It should be the same traceId that is passed into the TraceContext if I am not wrong. Alright sure! Thank you for your help Daniel!

          – Yan Han
          Dec 6 '18 at 8:32




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53492240%2f128-bit-sleuth-trace-id-on-pcf%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Futebolista

          Lallio

          Jornalista