Skip to content

Commit 38366d2

Browse files
committed
Fixup
1 parent 436f942 commit 38366d2

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

newrelic/api/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ def sampled(self):
657657
@property
658658
def ct_sampled(self):
659659
# If DT doesn't sample it CT will.
660-
if not self.sampled and (self._settings.distributed_tracing.drop_inprocess_spans.enabled or self._settings.distributed_tracing.unique_spans.enabled):
660+
if not self.sampled and self._settings.distributed_tracing.sampler.partial_granularity.enabled:
661661
return True
662662
return False
663663

newrelic/config.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,6 @@ def _process_configuration(section):
451451
_process_setting(section, "custom_insights_events.max_attribute_value", "getint", None)
452452
_process_setting(section, "ml_insights_events.enabled", "getboolean", None)
453453
_process_setting(section, "distributed_tracing.enabled", "getboolean", None)
454-
_process_setting(section, "distributed_tracing.drop_inprocess_spans.enabled", "getboolean", None)
455-
_process_setting(section, "distributed_tracing.unique_spans.enabled", "getboolean", None)
456-
_process_setting(section, "distributed_tracing.minimize_attributes.enabled", "getboolean", None)
457454
_process_setting(section, "distributed_tracing.exclude_newrelic_header", "getboolean", None)
458455
_process_setting(section, "distributed_tracing.sampler.remote_parent_sampled", "get", None)
459456
_process_setting(section, "distributed_tracing.sampler.remote_parent_not_sampled", "get", None)

newrelic/core/node_mixin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def span_events(self, settings, base_attrs=None, parent_guid=None, attr_class=di
121121
if span: # span will be None if the span is an inprocess span or repeated exit span.
122122
yield span
123123
# Compressed spans are always reparented onto the entry span.
124-
if not settings.distributed_tracing.unique_spans.enabled or span[0].get("nr.entryPoint"):
124+
if not settings.distributed_tracing.sampler.partial_granularity.type == "compact" or span[0].get("nr.entryPoint"):
125125
parent_id = self.guid
126126
for child in self.children:
127127
for event in child.span_events( # noqa: UP028

0 commit comments

Comments
 (0)