Skip to content

Commit bcc18f1

Browse files
committed
pass ignored boolean to should_sample
1 parent 4b4d71e commit bcc18f1

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
## [3.3.0] 2025-01-07
99
### Added
1010
- Added support for down-sampling via Scout configuration.
11-
- Sample rates can be set globally, for specific jobs/endpoints, or with wildcard selectors.
11+
- Sample rates can be set globally or for specific jobs/endpoints
1212
- Check out our [documentation](https://scoutapm.com/docs/python/configuration#sampling) for more information and example usage.
1313

1414
## [3.2.0] 2024-09-12

src/scout_apm/core/tracked_request.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,8 @@ def finish(self):
160160
self.end_time = dt.datetime.now(dt.timezone.utc)
161161

162162
if self.is_real_request:
163-
if (
164-
not self.is_ignored()
165-
and not self.sent
166-
and self.get_sampler().should_sample(self.operation)
163+
if not self.sent and self.get_sampler().should_sample(
164+
self.operation, self.is_ignored()
167165
):
168166
self.tag("mem_delta", self._get_mem_delta())
169167
self.sent = True

0 commit comments

Comments
 (0)