Skip to content

Commit 1c16ac4

Browse files
feat(metrics): Do not count unbounced request as processed metrics
1 parent 6b80448 commit 1c16ac4

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ protected methods, properties and constants belonging to the `src` folder and of
1111

1212
---
1313

14+
## [1.5.0](https://github.com/crowdsecurity/cs-standalone-php-bouncer/releases/tag/v1.5.0) - 2025-01-10
15+
16+
[_Compare with previous release_](https://github.com/crowdsecurity/cs-standalone-php-bouncer/compare/v1.4.0...v1.5.0)
17+
18+
### Changed
19+
20+
- Do not count a "processed" usage metrics when the IP is not bounced at all due to business rules (i.e. when `shouldBounceCurrentIp` returns false).
21+
22+
---
23+
1424
## [1.4.0](https://github.com/crowdsecurity/cs-standalone-php-bouncer/releases/tag/v1.4.0) - 2025-01-09
1525

1626
[_Compare with previous release_](https://github.com/crowdsecurity/cs-standalone-php-bouncer/compare/v1.3.1...v1.4.0)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
],
4242
"require": {
4343
"php": ">=7.2.5",
44-
"crowdsec/bouncer": "^4.0.0",
44+
"crowdsec/bouncer": "^4.1.0",
4545
"cweagans/composer-patches": "^1.7"
4646
},
4747
"require-dev": {

src/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ class Constants extends LibConstants
2323
/** @var string The user agent suffix for CrowdSec api calls */
2424
public const USER_AGENT_SUFFIX = 'Standalone';
2525
/** @var string The last version of this bouncer */
26-
public const VERSION = 'v1.4.0';
26+
public const VERSION = 'v1.5.0';
2727
}

0 commit comments

Comments
 (0)