From 41ec004878070bf7d40d5a01552b035d869ea8eb Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Thu, 18 Sep 2025 14:55:01 +0300 Subject: [PATCH] Add readme with supported flags for log4j 1 appender instrumentation (#14704) --- .../log4j/log4j-appender-1.2/javaagent/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 instrumentation/log4j/log4j-appender-1.2/javaagent/README.md diff --git a/instrumentation/log4j/log4j-appender-1.2/javaagent/README.md b/instrumentation/log4j/log4j-appender-1.2/javaagent/README.md new file mode 100644 index 0000000000..24751c2aa9 --- /dev/null +++ b/instrumentation/log4j/log4j-appender-1.2/javaagent/README.md @@ -0,0 +1,9 @@ +# 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. | + +[source code attributes]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#source-code-attributes