opentelemetry-java-instrume.../instrumentation/log4j/log4j-appender-1.2/javaagent
Lauri Tulmin 41ec004878
Add readme with supported flags for log4j 1 appender instrumentation (#14704)
2025-09-18 14:55:01 +03:00
..
src Support custom exception handling (#14493) 2025-08-25 17:11:39 +03:00
README.md Add readme with supported flags for log4j 1 appender instrumentation (#14704) 2025-09-18 14:55:01 +03:00
build.gradle.kts Add code attributes for log4j1 (#13947) 2025-08-19 19:18:55 -07:00

README.md

Settings for the Log4j Appender instrumentation

System property Type Default Description
otel.instrumentation.log4j-appender.experimental-log-attributes Boolean false Enable the capture of experimental log attributes thread.name and thread.id.
otel.instrumentation.log4j-appender.experimental.capture-code-attributes Boolean false Enable the capture of source code attributes. Note that capturing source code attributes at logging sites might add a performance overhead.
otel.instrumentation.log4j-appender.experimental.capture-mdc-attributes String Comma separated list of context data attributes to capture. Use the wildcard character * to capture all attributes.