We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a097b0 commit e46c407Copy full SHA for e46c407
newrelic/samplers/gc_data.py
@@ -37,8 +37,11 @@ def enabled(self):
37
settings = global_settings()
38
if platform.python_implementation() == "PyPy" or not settings:
39
return False
40
- else:
+ # This might be inheriting from Settings instead of TopLevelSettings
41
+ elif settings and hasattr(settings, "gc_runtime_metrics"):
42
return settings.gc_runtime_metrics.enabled
43
+ else:
44
+ return False
45
46
@property
47
def top_object_count_limit(self):
0 commit comments