You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: statistics listeners log a WARN for every event when usage statistics are disabled #3031
Part of EPIC #2387. SI-1, order 1 (decision D8). Bug, priority p1.
Goal
A tracker whose UDP or HTTP tracker sections have tracker_usage_statistics = false (the default of that per-tracker key) logs nothing for each event it does not count. An event from a listener the statistics policy does not know is an ERROR with service_role and instance_index fields. The operator sees once, at startup, how many service instances have statistics enabled and disabled.
Scope
In the three statistics listeners (udp-server, udp-core, http-core), split the policy lookup into enabled (count), disabled (no log above TRACE) and unknown (ERROR).
Add enabled_instances and disabled_instances to the start line of the three listeners.
A regression test with the real binary (UDP and HTTP, statistics disabled, no WARN and no ERROR) and unit tests per listener.
Specification
docs/issues/open/3031-2387-si-1-statistics-disabled-warning-per-event/ISSUE.md (added by the spec-only PR of this issue).
Activity
docs(issues): [torrust#3031] correct the no-persistence row of the co…
docs(issues): add issue specification for #3031
Merge #3032: docs(issues): [#3031] add specification for the statisti…
fix(statistics): [torrust#3031] address review round 1 of the statist…
docs(pr-reviews): [torrust#3031] record the audit of PR 3043 review r…
fix(statistics): [torrust#3031] address review round 2 of the statist…
docs(issues): [torrust#3031] keep the statistics-enabled run evidence…
docs(pr-reviews): [torrust#3031] record the audit of PR 3043 review r…
fix(test-helpers): [torrust#3031] import the tracing types of the sco…
docs(issues): [torrust#3031] state which commit and working tree the …
docs(pr-reviews): [torrust#3031] correct the commits cited by the aud…
docs(pr-reviews): [torrust#3031] record the audit of PR 3043 review r…
docs(pr-reviews): [torrust#3031] state only what ran in the audit of …
docs(pr-reviews): [torrust#3031] record the audit of PR 3043 review r…
test(test-helpers): [#3031] add a scoped log capture and a UDP tracke…
fix(statistics): [#3031] stop warning for each event of a statistics-…
docs(issues): [#3031] record the manual verification evidence and com…
Merge torrust#3043: fix(statistics): [torrust#3031] stop warning for …
docs(issues): [torrust#3031] point the archived spec at the parent EP…
docs(pr-reviews): [torrust#3031] record the audit of PR 3048 review r…
docs(issues): [torrust#3031] refresh the last-updated stamp of the ar…
docs(pr-reviews): [torrust#3031] record the audit of PR 3048 review r…
chore(issues): archive closed issue #3031 spec to docs/issues/closed
Merge #3048: chore(issues): archive closed issue #3031 spec to docs/i…
Merge #3081: docs(issues): refresh the daemon JSON logging spec and r…