newrelic/newrelic-php-agent

Add strip_exception_messages option to php agent configuration

tsuchikazu opened this issue · 0 comments

Summary

We want to strip exception messages from error to comply with our corporate security policies.

The strip_exception_messages option exists for other language agents.

But the php agent does not have the strip_exception_messages option.

Desired Behavior

Add strip_exception_messages to php agent configuration.

  • name: newrelic.strip_exception_messages.enabled
  • type: Boolean
  • default: false

If strip_exception_messages option is true, php agent strips exception messages from errors.

Possible Solution

The allow_raw_exception_messages option is already exists to strip exception messages. This settings is private.

It would be good to rename this option to strip_exception_messages and publish.