metrics: Add new relay metrics to MetricsPort
commit5a5ca444c80ee5ef17a5f0b0d94720e82f51209c
authorDavid Goulet <dgoulet@torproject.org>
Tue, 30 Jan 2024 15:13:09 +0000 (30 10:13 -0500)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 30 Jan 2024 15:13:09 +0000 (30 10:13 -0500)
tree2396d70c3034909832f05ef5c6231055b0c6b88b
parent9536c0b0f2e1fb65685471b1728e35ffb61c18f5
metrics: Add new relay metrics to MetricsPort

This commit adds the total number of DROP cell seen, the total number of
DESTROY cell received and the total number of protocol violation that lead to a
circuit close.

Closes #40816

Signed-off-by: David Goulet <dgoulet@torproject.org>
changes/ticket40816 [new file with mode: 0644]
src/core/or/circuitlist.c
src/core/or/circuitlist.h
src/feature/relay/relay_metrics.c
src/feature/relay/relay_metrics.h
src/feature/stats/rephist.c
src/feature/stats/rephist.h