mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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