This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/logback-appender-1.0.md.

Logback

OpenTelemetry Java agent instrumentation

This instrumentation bridges Logback log events to OpenTelemetry logs.

  • Name: logback-appender-1.0
  • Scope: io.opentelemetry.logback-appender-1.0
  • Target versions: ch.qos.logback:logback-classic:[0.9.16,)
  • Library: https://logback.qos.ch/

Configuration

OptionTypeDefaultDescription
otel.instrumentation.logback-appender.experimental-log-attributesbooleanfalseEnables the capture of experimental log attributes, including thread name and thread ID.
otel.instrumentation.logback-appender.experimental.capture-argumentsbooleanfalseEnables the capture of log message arguments as separate attributes.
otel.instrumentation.logback-appender.experimental.capture-code-attributesbooleanfalseEnables the capture of code location attributes, including file path, class name, method name, and line number.
otel.instrumentation.logback-appender.experimental.capture-key-value-pair-attributesbooleanfalseEnables the capture of attributes from Logback key-value pairs.
otel.instrumentation.logback-appender.experimental.capture-logger-context-attributesbooleanfalseEnables the capture of attributes from the Logback logger context.
otel.instrumentation.logback-appender.experimental.capture-logstash-marker-attributesbooleanfalseEnables the capture of attributes from Logstash markers.
otel.instrumentation.logback-appender.experimental.capture-logstash-structured-argumentsbooleanfalseEnables the capture of attributes from Logstash structured arguments.
otel.instrumentation.logback-appender.experimental.capture-marker-attributebooleanfalseEnables the capture of the Logback marker attribute.
otel.instrumentation.logback-appender.experimental.capture-mdc-attributeslistControls which MDC attributes to capture. Use "*" to capture all MDC attributes or provide a comma-separated list of specific keys.
otel.instrumentation.logback-appender.experimental.capture-templatebooleanfalseEnables the capture of the log message template before parameter substitution.

Data

  • JSON: /data/javaagent/instrumentations/logback-appender-1.0/logback-appender-1.0-feec7cf9edbe.json
  • Explore: /java-agent/instrumentation/logback-appender-1.0