Skip to content

Commit 615d9dc

Browse files
authored
Add mapping for ignore_errors to ignore_classes in SSC. (#225)
* Add mapping for ignore_errors to ignore_classes * Correct logic for SSC remap
1 parent 7be4ac7 commit 615d9dc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

newrelic/core/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,6 +1008,12 @@ def apply_server_side_settings(server_side_config={}, settings=_settings):
10081008
if value == 'apdex_f':
10091009
agent_config['transaction_tracer.transaction_threshold'] = None
10101010

1011+
# If ignore_errors exists, and either ignore_classes is not set or it is empty
1012+
if "error_collector.ignore_errors" in agent_config and \
1013+
("error_collector.ignore_classes" not in agent_config or not agent_config["error_collector.ignore_classes"]):
1014+
# Remap to newer config key
1015+
agent_config["error_collector.ignore_classes"] = agent_config.pop("error_collector.ignore_errors")
1016+
10111017
# Overlay with agent server side configuration settings.
10121018

10131019
for (name, value) in agent_config.items():

0 commit comments

Comments
 (0)