You can use rate limited logger, format the trace as a string and then provide it to RateLimitedLogger.tryLogForMessage so each individual trace has a separate rate limit