# TraceId and TransactionId stop displaying in Console Appender after running Java application with -javaagent

**URL:** <https://discuss.elastic.co/t/traceid-and-transactionid-stop-displaying-in-console-appender-after-running-java-application-with-javaagent/341323>\
**Category:** APM\
**Tags:** docker, java\
**Created:** [August 22, 2023, 6:05am UTC](https://discuss.elastic.co/t/traceid-and-transactionid-stop-displaying-in-console-appender-after-running-java-application-with-javaagent/341323 "2023-08-22T06:05:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Rishi\_Maharaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rishi_maharaj/32/124811_2.png) [@Rishi\_Maharaj](https://discuss.elastic.co/u/Rishi_Maharaj)\
**Post date:** [August 22, 2023, 2:08pm UTC](https://discuss.elastic.co/t/traceid-and-transactionid-stop-displaying-in-console-appender-after-running-java-application-with-javaagent/341323/4 "2023-08-22T14:08:33Z")

</div>

I was expecting to see this (which I did see for a few requests early yesterday), so I'm not sure what I did to change that behavior:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/9/c9be06a0962bf0d476b2db6d0008d4e999b4dd3a.png)

But running with the javaagent stops the trace info from showing in the console (even with the updated pattern `[%blue(%X{trace.id}) %magenta(%X{transaction.id})]`)

```bash
2023-08-22 07:00:00,293 DEBUG [] o.s.c.l.LogFormatUtils: GET "/api/trace/rt/8099", parameters={} 
2023-08-22 07:00:00,317 INFO [] c.p.p.f.a.v.HealthCheckController: sending request to other service 
2023-08-22 07:00:00,678 INFO [] c.p.p.f.a.v.HealthCheckController: got response [<200 OK OK,ResponseMessage(status=success, code=200, message=v1 healthy af, dataType=null, length=0, totalItems=null, totalPages=0, pageNum=0, pageSize=0, offset=0, data=null, timestamp=Tue Aug 22 07:00:00 PDT 2023, responseTime=null),[Vary:"Origin", "Access-Control-Request-Method", "Access-Control-Request-Headers", X-Content-Type-Options:"nosniff", X-XSS-Protection:"0", Cache-Control:"no-cache, no-store, max-age=0, must-revalidate", Pragma:"no-cache", Expires:"0", X-Frame-Options:"DENY", Content-Type:"application/json", Transfer-Encoding:"chunked", Date:"Tue, 22 Aug 2023 14:00:00 GMT", Keep-Alive:"timeout=60", Connection:"keep-alive"]>] 
2023-08-22 07:00:00,686 INFO [] c.p.p.f.a.v.HealthCheckController: trace healthy af 
2023-08-22 07:00:00,712 DEBUG [] o.s.w.s.FrameworkServlet: Completed 200 OK 

```

---

_[View the full topic](https://discuss.elastic.co/t/traceid-and-transactionid-stop-displaying-in-console-appender-after-running-java-application-with-javaagent/341323)._
