Merge branch 'feat/inbound-firewall-telemetry' into release/2.3.0

# Conflicts:
#	CHANGELOG.md
#	CHANGELOG.pt-BR.md
This commit is contained in:
Lucas Rayan committed 2026-11-23 09:09:54 -03:00
commit 554ea1340c
40 files changed
+1684 -11

No files matched your search

+10
View File
@@ -116,6 +116,9 @@ type Runner struct {
Log *slog.Logger
// EgressFeed receives the "egress" lines of a probe (nil: they are only counted).
EgressFeed func(line []byte)
// IngressFeed receives the "ingress" and "ingresscnt" lines of a probe
// (nil: they are only counted). They never become events.
IngressFeed func(src string, line []byte)
mu sync.Mutex // commit mutex: held while a line is applied and by snapshots
@@ -240,6 +243,13 @@ func (r *Runner) feedLocked(src string, text []byte, end store.Offset) bool {
r.EgressFeed(text)
}()
}
} else if src == wire.SrcIngress || src == wire.SrcIngressCnt {
if r.IngressFeed != nil {
func() {
defer func() { recover() }()
r.IngressFeed(src, text)
}()
}
} else if s := r.find(name); s != nil {
r.handle(s)(text)
}