mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-01 08:01:39 -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
|
||||
)
|
||||
|
||||
var _ slog.Handler = (*Deduper)(nil)
|
||||
|
||||
// Deduper implements *slog.Handler, dedupes log lines based on a time duration.
|
||||
type Deduper struct {
|
||||
next *slog.Logger
|
||||
|
|
Loading…
Reference in a new issue