more
This commit is contained in:
1 parent
2237fbda55
commit
5076036709
11 files changed
+299
-8
No files matched your search
Binary file not shown.
@@ -63,6 +63,10 @@ def main():
|
||||
print(f"\naccuracy {acc:.2%} over {len(results)} rows; "
|
||||
f"median latency {sorted(lat)[len(lat)//2]:.0f}ms")
|
||||
|
||||
for src in sorted({r.get("src", "?") for r in results}):
|
||||
sub = [r for r in results if r.get("src", "?") == src]
|
||||
print(f" {src:<11} {sum(r['ok'] for r in sub)}/{len(sub)}")
|
||||
|
||||
wrong = [r for r in results if not r["ok"]]
|
||||
if wrong:
|
||||
print("\nmisses:")
|
||||
|
||||
@@ -234,6 +234,7 @@ func main() {
|
||||
}
|
||||
wsServer := websocket.New(coll)
|
||||
honeypotTracker := honeypot.New(honeypot.ConfigFromEnv())
|
||||
coll.SetHoneypotRecorder(honeypotTracker)
|
||||
// Update collector with wsServer
|
||||
coll.SetBroadcaster(wsServer)
|
||||
ingestKey := os.Getenv("OTEL_INGEST_KEY")
|
||||
|
||||
Reference in new issue
Block a user