Skip to content

Commit 2eb0a3a

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

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,30 @@ 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-mdc-attributes
15+
declarative_name: java.log4j_appender.capture_mdc_attributes/development
1416
description: >
1517
Controls which MDC attributes to capture. Use "*" to capture all MDC attributes or provide a
1618
comma-separated list of specific keys.
1719
type: list
1820
default: ''
21+
examples:
22+
- "custom-mdc-key"
23+
- "key1,key2,key3"
1924
- name: otel.instrumentation.log4j-appender.experimental.capture-code-attributes
25+
declarative_name: java.log4j_appender.capture_code_attributes/development
2026
description: >
2127
Enables the capture of code location attributes, including file path, class name, method
2228
name, and line number.
2329
type: boolean
2430
default: false
2531
- name: otel.instrumentation.log4j-appender.experimental.capture-event-name
32+
declarative_name: java.log4j_appender.capture_event_name/development
2633
description: >
2734
Enables the capture of the event name from the MDC attribute "event.name" and sets it as the
2835
log record's event name.

0 commit comments

Comments
 (0)