Skip to content

Version 3.0.0

Compare
Choose a tag to compare
@jtduffy jtduffy released this 27 Jun 12:45
· 45 commits to main since this release
ca73bcd

What's Changed

  • Exception Stack Trace Size - this has been changed from a default of 10 to 300. This applies to all logging libraries supported by the java-log-extension project.
    • This is configurable via:
      • System property: -Dnewrelic.log_extension.max_stack_size=integer
      • Environment Variable: NEW_RELIC_LOG_EXTENSION_MAX_STACK_SIZE=integer
  • Mapped Diagnostic Context (MDC) - decorating logs with MDC data is now generally supported but disabled by default. MDC keys will be prefixed by context. to prevent clashes with New Relic specific attributes. This applies to all logging libraries supported by the java-log-extension project, except for Java Util Logging (JUL) which does not provide an MDC mechanism.
    • This is configurable via:
      • System property: -Dnewrelic.log_extension.add_mdc=boolean
      • Environment Variable: NEW_RELIC_LOG_EXTENSION_ADD_MDC=boolean
    • Note: This is considered a breaking change as previously some of the logging libraries automatically added MDC. If you upgrade to this version of the java-log-extension and wish to have MDC added to your logs then you will need to explicitly enable it. Currently, this will add all MDC as filtering out specific keys is not yet supported.

Full Changelog: v2.6.0...v3.0.0