mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Merge pull request #15407 from tjhop/chore/slog-handler-compile-check
chore(deduper): add compile check that slog.Handler interface is satisfied
This commit is contained in:
commit
ca600cfaff
|
@ -26,6 +26,8 @@ const (
|
||||||
maxEntries = 1024
|
maxEntries = 1024
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var _ slog.Handler = (*Deduper)(nil)
|
||||||
|
|
||||||
// Deduper implements *slog.Handler, dedupes log lines based on a time duration.
|
// Deduper implements *slog.Handler, dedupes log lines based on a time duration.
|
||||||
type Deduper struct {
|
type Deduper struct {
|
||||||
next *slog.Logger
|
next *slog.Logger
|
||||||
|
|
Loading…
Reference in a new issue