Skip to content

Commit a217de8

Browse files
committed
Only increment priority if full granularity
1 parent 02dbb85 commit a217de8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

newrelic/api/transaction.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,8 @@ def sampling_algo_compute_sampled_and_priority(self, priority, sampled, sampler_
10171017
if sampled is None:
10181018
_logger.debug("No trusted account id found. Sampling decision will be made by adaptive sampling algorithm.")
10191019
sampled = self._application.compute_sampled(**sampler_kwargs)
1020-
if sampled:
1020+
# Only increment the priority if this is a full granularity transaction.
1021+
if sampled and sampler_kwargs.get("full_granularity"):
10211022
priority += 1
10221023
return priority, sampled
10231024

0 commit comments

Comments
 (0)