From d9dcfaafa59771bb9654752739d2b72345910e76 Mon Sep 17 00:00:00 2001 From: Hannah Stepanek Date: Thu, 18 Apr 2024 15:33:06 -0700 Subject: [PATCH] Add PID into MEMORY_RUNTIME_METRICS_ENABLED (#1129) * Fix name of env var * [Mega-Linter] Apply linters fixes * Bump tests --------- Co-authored-by: hmstepanek Co-authored-by: Tim Pansino --- newrelic/core/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/newrelic/core/config.py b/newrelic/core/config.py index 677f278aa..668ae1a21 100644 --- a/newrelic/core/config.py +++ b/newrelic/core/config.py @@ -745,7 +745,9 @@ def default_otlp_host(host): _settings.gc_runtime_metrics.enabled = False _settings.gc_runtime_metrics.top_object_count_limit = 5 -_settings.memory_runtime_pid_metrics.enabled = _environ_as_bool("NEW_RELIC_MEMORY_RUNTIME_METRICS_ENABLED", default=True) +_settings.memory_runtime_pid_metrics.enabled = _environ_as_bool( + "NEW_RELIC_MEMORY_RUNTIME_PID_METRICS_ENABLED", default=True +) _settings.transaction_events.enabled = True _settings.transaction_events.attributes.enabled = True