You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`otel.instrumentation.log4j-appender.experimental-log-attributes`| Boolean |`false`| Enable the capture of experimental log attributes `thread.name` and `thread.id`. |
6
-
|`otel.instrumentation.log4j-appender.experimental.capture-map-message-attributes`| Boolean |`false`| Enable the capture of `MapMessage` attributes. |
7
-
|`otel.instrumentation.log4j-appender.experimental.capture-marker-attribute`| Boolean |`false`| Enable the capture of Log4j markers as attributes. |
8
-
|`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. |
3
+
| 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`. |
6
+
|`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. |
7
+
|`otel.instrumentation.log4j-appender.experimental.capture-map-message-attributes`| Boolean |`false`| Enable the capture of `MapMessage` attributes. |
8
+
|`otel.instrumentation.log4j-appender.experimental.capture-marker-attribute`| Boolean |`false`| Enable the capture of Log4j markers as attributes. |
9
+
|`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. |
Copy file name to clipboardexpand all lines: instrumentation/log4j/log4j-appender-2.17/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/log4j/appender/v2_17/Log4jAppenderInstrumentation.java
+5-2
Original file line number
Diff line number
Diff line change
@@ -73,14 +73,16 @@ public static void methodEnter(
Copy file name to clipboardexpand all lines: instrumentation/log4j/log4j-appender-2.17/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/log4j/appender/v2_17/Log4jHelper.java
Copy file name to clipboardexpand all lines: instrumentation/log4j/log4j-appender-2.17/javaagent/src/test/java/io/opentelemetry/instrumentation/log4j/appender/v2_17/Log4j2Test.java
0 commit comments