Skip to content

Commit f0bf985

Browse files
committed
Update PR: Add a test method to verify that only one log entry is allowed per minute.
1 parent 313d391 commit f0bf985

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/common/src/main/java/io/opentelemetry/sdk/internal/ThrottlingLogger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public ThrottlingLogger(Logger delegate) {
4141
this.fastRateLimiter =
4242
new RateLimiter(RATE_LIMIT / rateTimeUnit.toSeconds(1), RATE_LIMIT, clock);
4343
this.throttledRateLimiter =
44-
new RateLimiter(RATE_LIMIT / rateTimeUnit.toSeconds(1), THROTTLED_RATE_LIMIT, clock);
44+
new RateLimiter(
45+
THROTTLED_RATE_LIMIT / rateTimeUnit.toSeconds(1), THROTTLED_RATE_LIMIT, clock);
4546
}
4647

4748
/** Log a message at the given level. */

0 commit comments

Comments
 (0)