Adds local decorating (i.e. NR-LINKING metadata) to log4j 2 logs using JsonTemplateLayout such as shown configured in the XML snippet below:
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<!-- THIS DOES NOT WORK! Use JsonTemplateLayout with default JsonLayout provided by log4j2 -->
<JsonTemplateLayout eventTemplateUri="classpath:JsonLayout.json"/>
</Console>
</Appenders>
The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here,
Checks
[ ] Your contributions are backwards compatible with relevant frameworks and APIs.
[ ] Your code does not contain any breaking changes. Otherwise please describe.
[ ] Your code does not introduce any new dependencies. Otherwise please describe.
Overview
Adds local decorating (i.e. NR-LINKING metadata) to log4j 2 logs using
JsonTemplateLayout
such as shown configured in the XML snippet below:Example log without local decorating:
Example log with local decorating:
Related Github Issue
#1730
Testing
The agent includes a suite of tests which should be used to verify your changes don't break existing functionality. These tests will run with Github Actions when a pull request is made. More details on running the tests locally can be found here,
Checks