title: 128 bit Sleuth Trace ID on PCF
body: <p>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:</p>
  
  <p><code>spring.sleuth.trace-id128=true</code></p>
  
  <p>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.</p>
  
  <pre><code>@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()+"]");
      }
  }
  </code></pre>
  
  <p>In my local, it will print:</p>
  
  <p><code>com.example.demo.Controller: LOGGED + [5bfcb33c9d564481479f2c212ec08143]</code></p>
  
  <p>In PCF, it prints:</p>
  
  <p><code>om.example.demo.Controller : LOGGED + [97a1168857dc7088]</code></p>
  
  <p>Is PCF overwriting this configuration?</p>
  
  <p><strong>Updates</strong></p>
  
  <p>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.</p>
  
  <p><a href="https://i.stack.imgur.com/h0GJF.png" rel="nofollow noreferrer">Details from log</a></p>