mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* 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]>
16 lines
255 B
Go
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")
|
|
}
|