Skip to content

Commit

Permalink
Add PID into MEMORY_RUNTIME_METRICS_ENABLED (#1129)
Browse files Browse the repository at this point in the history
* Fix name of env var

* [Mega-Linter] Apply linters fixes

* Bump tests

---------

Co-authored-by: hmstepanek <hmstepanek@users.noreply.github.com>
Co-authored-by: Tim Pansino <timpansino@gmail.com>
  • Loading branch information
3 people committed Apr 18, 2024
1 parent 7b90b64 commit d9dcfaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion newrelic/core/config.py
Expand Up @@ -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
Expand Down

0 comments on commit d9dcfaa

Please sign in to comment.