Skip to content

Commit 27079c4

Browse files
committed
Megalinter fixes
1 parent 4f957cc commit 27079c4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

newrelic/core/config.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,17 @@ def default_otlp_host(host):
821821
)
822822

823823
_settings.transaction_events.enabled = True
824-
_settings.transaction_events.max_samples_stored = _environ_as_int("NEW_RELIC_TRANSACTION_EVENTS_MAX_SAMPLES_STORED", default=DEFAULT_RESERVOIR_SIZE)
824+
_settings.transaction_events.max_samples_stored = _environ_as_int(
825+
"NEW_RELIC_TRANSACTION_EVENTS_MAX_SAMPLES_STORED", default=DEFAULT_RESERVOIR_SIZE
826+
)
825827
_settings.transaction_events.attributes.enabled = True
826828
_settings.transaction_events.attributes.exclude = []
827829
_settings.transaction_events.attributes.include = []
828830

829831
_settings.custom_insights_events.enabled = True
830-
_settings.custom_insights_events.max_samples_stored = _environ_as_int("NEW_RELIC_CUSTOM_INSIGHTS_EVENTS_MAX_SAMPLES_STORED", default=CUSTOM_EVENT_RESERVOIR_SIZE)
832+
_settings.custom_insights_events.max_samples_stored = _environ_as_int(
833+
"NEW_RELIC_CUSTOM_INSIGHTS_EVENTS_MAX_SAMPLES_STORED", default=CUSTOM_EVENT_RESERVOIR_SIZE
834+
)
831835
_settings.custom_insights_events.max_attribute_value = _environ_as_int(
832836
"NEW_RELIC_CUSTOM_INSIGHTS_EVENTS_MAX_ATTRIBUTE_VALUE", default=MAX_ATTRIBUTE_LENGTH
833837
)
@@ -871,7 +875,9 @@ def default_otlp_host(host):
871875
_settings.error_collector.ignore_classes = []
872876
_settings.error_collector.ignore_status_codes = _parse_status_codes("100-102 200-208 226 300-308 404", set())
873877
_settings.error_collector.expected_classes = []
874-
_settings.error_collector.max_event_samples_stored = _environ_as_int("NEW_RELIC_ERROR_COLLECTOR_MAX_EVENT_SAMPLES_STORED", default=ERROR_EVENT_RESERVOIR_SIZE)
878+
_settings.error_collector.max_event_samples_stored = _environ_as_int(
879+
"NEW_RELIC_ERROR_COLLECTOR_MAX_EVENT_SAMPLES_STORED", default=ERROR_EVENT_RESERVOIR_SIZE
880+
)
875881
_settings.error_collector.expected_status_codes = set()
876882
_settings.error_collector._error_group_callback = None
877883
_settings.error_collector.attributes.enabled = True

0 commit comments

Comments
 (0)