Skip to content

Commit f52e9bd

Browse files
[MegaLinter] Apply linters fixes
1 parent edbfd79 commit f52e9bd

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

newrelic/config.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,18 @@ def _process_configuration(section):
446446
_process_setting(section, "distributed_tracing.enabled", "getboolean", None)
447447
_process_setting(section, "distributed_tracing.exclude_newrelic_header", "getboolean", None)
448448
_process_setting(section, "distributed_tracing.sampler.adaptive_sampling_target", "getint", None)
449-
_process_dt_setting(section, "distributed_tracing.sampler.full_granularity.remote_parent_sampled", "distributed_tracing.sampler.remote_parent_sampled", "get")
450-
_process_dt_setting(section, "distributed_tracing.sampler.full_granularity.remote_parent_not_sampled", "distributed_tracing.sampler.remote_parent_not_sampled", "get")
449+
_process_dt_setting(
450+
section,
451+
"distributed_tracing.sampler.full_granularity.remote_parent_sampled",
452+
"distributed_tracing.sampler.remote_parent_sampled",
453+
"get",
454+
)
455+
_process_dt_setting(
456+
section,
457+
"distributed_tracing.sampler.full_granularity.remote_parent_not_sampled",
458+
"distributed_tracing.sampler.remote_parent_not_sampled",
459+
"get",
460+
)
451461
_process_setting(section, "distributed_tracing.sampler.full_granularity.enabled", "getboolean", None)
452462
_process_setting(section, "distributed_tracing.sampler.partial_granularity.enabled", "getboolean", None)
453463
_process_setting(section, "distributed_tracing.sampler.partial_granularity.type", "get", None)

newrelic/core/config.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -854,14 +854,10 @@ def default_otlp_host(host):
854854
)
855855
_settings.distributed_tracing.sampler.full_granularity.remote_parent_sampled = os.environ.get(
856856
"NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_FULL_GRANULARITY_REMOTE_PARENT_SAMPLED", None
857-
) or os.environ.get(
858-
"NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_REMOTE_PARENT_SAMPLED", "default"
859-
)
857+
) or os.environ.get("NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_REMOTE_PARENT_SAMPLED", "default")
860858
_settings.distributed_tracing.sampler.full_granularity.remote_parent_not_sampled = os.environ.get(
861859
"NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_FULL_GRANULARITY_REMOTE_PARENT_NOT_SAMPLED", None
862-
) or os.environ.get(
863-
"NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_REMOTE_PARENT_NOT_SAMPLED", "default"
864-
)
860+
) or os.environ.get("NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_REMOTE_PARENT_NOT_SAMPLED", "default")
865861
_settings.distributed_tracing.sampler.partial_granularity.enabled = _environ_as_bool(
866862
"NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_PARTIAL_GRANULARITY_ENABLED", default=False
867863
)

0 commit comments

Comments
 (0)