Files
traces/pkg/util/log/rate_limited_logger_test.go
Annanay AgarwalandGitHub 348419352d Replace use of cortex util directory with tempo (#1228)
* Replace use of cortex util directory with tempo

Signed-off-by: Annanay <[email protected]>

* Drop use of Prometheus Logger to avoid duplicate metrics registration

Signed-off-by: Annanay <[email protected]>

* Address comments

Signed-off-by: Annanay <[email protected]>
2022-01-27 15:49:06 +05:30

16 lines
255 B
Go

package log
import (
"testing"
"github.com/go-kit/log/level"
"github.com/stretchr/testify/assert"
)
func TestRateLimitedLogger(t *testing.T) {
logger := NewRateLimitedLogger(10, level.Error(Logger))
assert.NotNil(t, logger)
logger.Log("test")
}