Rémi C. created LOG4J2-3200:
-------------------------------

             Summary: Log4j2 compatibility with Open Telemetry
                 Key: LOG4J2-3200
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3200
             Project: Log4j 2
          Issue Type: Question
          Components: Filters
            Reporter: Rémi C.


Hello,

  I am trying to fetch the trace id generated by open telemetry with only 
configuration in log4j2.xml file and web.xml file.

  I created a stack overflow ticket, see : 
[https://stackoverflow.com/questions/70194344/how-to-access-request-header-value-with-log4j2]

 

  Is it possible with the log4j2 lookup to be compatible with open telemetry?

  I tried to use ${web:header.traceId} and it just does not work. I have 
followed the config. So, am I missing something to make it work?

  I saw that even without the web.xml config I added, the ${web:rootDir} still 
works.

  There is almost no information on the internet on how to make it work with 
Open Telemetry so I am asking to the expert here. Open Telemetry is basically a 
field/value that is set in the HTTP request header.

 

Thank you



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to