Skip to content

Commit

Permalink
feat(metrics): Do not count unbounced request as processed metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
julienloizelet committed Jan 10, 2025
1 parent 6b80448 commit 1c16ac4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ protected methods, properties and constants belonging to the `src` folder and of

---

## [1.5.0](https://github.com/crowdsecurity/cs-standalone-php-bouncer/releases/tag/v1.5.0) - 2025-01-10

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

### Changed

- 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).

---

## [1.4.0](https://github.com/crowdsecurity/cs-standalone-php-bouncer/releases/tag/v1.4.0) - 2025-01-09

[_Compare with previous release_](https://github.com/crowdsecurity/cs-standalone-php-bouncer/compare/v1.3.1...v1.4.0)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
],
"require": {
"php": ">=7.2.5",
"crowdsec/bouncer": "^4.0.0",
"crowdsec/bouncer": "^4.1.0",
"cweagans/composer-patches": "^1.7"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ class Constants extends LibConstants
/** @var string The user agent suffix for CrowdSec api calls */
public const USER_AGENT_SUFFIX = 'Standalone';
/** @var string The last version of this bouncer */
public const VERSION = 'v1.4.0';
public const VERSION = 'v1.5.0';
}

0 comments on commit 1c16ac4

Please sign in to comment.