ramanathan1504 opened a new pull request, #4175:
URL: https://github.com/apache/logging-log4j2/pull/4175

   Follow-up to PR #4171
   
   As discussed with @rgoers, this PR adds the `TraceIdResolver`, 
`SpanIdResolver`, and `TraceFlagsResolver` to log4j-layout-template-json.
   
   Currently, users outputting structured JSON to Elasticsearch would have to 
fall back to the pattern resolver `({"$resolver": "pattern", "pattern": 
"%traceId"})`, which introduces intermediate StringBuilder allocations.
   
   By providing these native`JTL` event resolvers, structured logging can 
utilize the native trace fields with absolute zero-allocation performance on 
the hot path.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to