Skip to content

Commit fd58970

Browse files
authored
Review fixes for log4j-appender-2.17:javaagent (open-telemetry#18190)
Co-authored-by: otelbot <197425009+otelbot@users.noreply.github.com>
1 parent 2eb0a3a commit fd58970

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

instrumentation/log4j/log4j-appender-2.17/metadata.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,42 @@ features:
66
- LOGGING_BRIDGE
77
configurations:
88
- name: otel.instrumentation.log4j-appender.experimental-log-attributes
9+
declarative_name: java.log4j_appender.experimental_log_attributes/development
910
description: >
1011
Enables the capture of experimental log attributes, including thread name and thread ID.
1112
type: boolean
1213
default: false
1314
- name: otel.instrumentation.log4j-appender.experimental.capture-code-attributes
15+
declarative_name: java.log4j_appender.capture_code_attributes/development
1416
description: >
1517
Enables the capture of code location attributes, including file path, class name, method
1618
name, and line number.
1719
type: boolean
1820
default: false
1921
- name: otel.instrumentation.log4j-appender.experimental.capture-map-message-attributes
22+
declarative_name: java.log4j_appender.capture_map_message_attributes/development
2023
description: >
2124
Enables the capture of attributes from Log4j MapMessage instances.
2225
type: boolean
2326
default: false
2427
- name: otel.instrumentation.log4j-appender.experimental.capture-marker-attribute
28+
declarative_name: java.log4j_appender.capture_marker_attribute/development
2529
description: >
2630
Enables the capture of the Log4j marker attribute.
2731
type: boolean
2832
default: false
2933
- name: otel.instrumentation.log4j-appender.experimental.capture-mdc-attributes
34+
declarative_name: java.log4j_appender.capture_mdc_attributes/development
3035
description: >
3136
Controls which MDC attributes to capture. Use "*" to capture all MDC attributes or provide a
3237
comma-separated list of specific keys.
3338
type: list
3439
default: ''
40+
examples:
41+
- "custom-mdc-key"
42+
- "key1,key2,key3"
3543
- name: otel.instrumentation.log4j-appender.experimental.capture-event-name
44+
declarative_name: java.log4j_appender.capture_event_name/development
3645
description: >
3746
Enables the capture of the event name from the MDC attribute "event.name" and sets it as the
3847
log record's event name.

0 commit comments

Comments
 (0)