mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 12:26:14 +02: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…
x
Reference in New Issue
Block a user