Skip to content

Commit 5c9db69

Browse files
committed
Fixed #429 sampling rate rule.
1 parent ce30d73 commit 5c9db69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/wpgraphql-logging/src/Logger/Rules/SamplingRateRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ public function passes(array $config, ?string $query_string = null): bool {
3737
* Get the rule name for debugging.
3838
*/
3939
public function get_name(): string {
40-
return 'enabled_rule';
40+
return 'sampling_rate_rule';
4141
}
4242
}

plugins/wpgraphql-logging/tests/wpunit/Logger/Rules/SamplingRateRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function setUp(): void {
2626
}
2727

2828
public function test_get_name_returns_correct_name(): void {
29-
$this->assertEquals('enabled_rule', $this->rule->get_name());
29+
$this->assertEquals('sampling_rate_rule', $this->rule->get_name());
3030
}
3131

3232
public function test_passes_with_100_percent_sampling_rate(): void {

0 commit comments

Comments
 (0)