[
https://issues.apache.org/jira/browse/LOG4J2-3200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453467#comment-17453467
]
Rémi C. commented on LOG4J2-3200:
---------------------------------
Thank you for your answer and I am looking to it right now.
Still, dumb dumb, I realized the header.name I was talking is a recent commit
that is in the LOG4j 3.0.0-SNAPSHOT version. So, it's not in 2.14.1 and hence
it will not work for me.
See the commit :
[https://github.com/apache/logging-log4j2/commit/61fa967b39d56dc06f4b1b5e0f683bbf4a4cc338#diff-fa07451dc5e13bf4db888a70c66ae28a38c172e187f1747e3d23112a276e8e76]
I wrongly pasted the first link, there was a parenthesis in the url.
[https://github.com/apache/logging-log4j2/blob/master/src/site/asciidoc/manual/lookups.adoc|https://github.com/apache/logging-log4j2/blob/master/src/site/asciidoc/manual/lookups.adoc)]
(down the page see header.name)
I can't download log4j3 on the web. Is there a place I can access it?
Thank you
> 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.
> Priority: Blocker
>
> 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)