← Changelog

Ignore logs and improved trace processing

May 26, 2025

Added

  • Add an ignore_logs config option, which can be set using the appsignal.config.ignore_logs resource attribute. When this resource attribute is set, logs whose message matches any of the values in the ignore_logs list of values will be discarded.

    The values on the ignore_logs configuration option support the ^, $ and .* meta-characters, with their expected meanings in regular expressions. When neither ^ or $ are specified at the beginning or ending of the value respectively, ignore_logs will match a log message if its value is present at any point in the message.

    For example, to ignore logs starting with "success" or containing the word "OK", when setting the resource attributes in a Go application:

    Go
    res := resource.NewWithAttributes(
    	attribute.StringSlice("appsignal.config.ignore_logs", []string{"^success", "OK"}),
    	// And other resource attributes
    )

    The list of patterns can also be provided as a comma-separated string -- this is useful when using the OTEL_RESOURCE_ATTRIBUTES environment variable, such as in a PHP application:

    Shell
    function encode() {
      echo -n "$@" | sed 's/,/%2C/g'
    }
     
    export OTEL_RESOURCE_ATTRIBUTES="\
      appsignal.config.ignore_errors=$(encode "^success,OK"),\
      ..."

Changed

  • Improve AppSignal compatibility with traces across multiple services.

This release can be installed through our collector packages and Docker image.

$appsignal install

Make your next crash make sense.

Free for 30 days. No credit card. Two-minute install.