diff options
author | David Goulet <dgoulet@torproject.org> | 2021-05-05 13:33:33 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-05-12 11:58:25 -0400 |
commit | 8bb1874f1e80f10c1f222db52471a458c4d6d5bc (patch) | |
tree | 40be3e8dabf12a45f58c318d7d60670dcb00fc0f /src/feature/relay/onion_queue.c | |
parent | 9c2fa3498233bbb5f347a03188433c6c5f6de24f (diff) | |
download | tor-8bb1874f1e80f10c1f222db52471a458c4d6d5bc.tar.gz tor-8bb1874f1e80f10c1f222db52471a458c4d6d5bc.zip |
relay: Add the onionskins processing metrics
With this commit, a relay now emits metrics event on the MetricsPort
related to how many onionskins were handled (processed or dropped) for
each handshake type.
Related to #40367
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay/onion_queue.c')
-rw-r--r-- | src/feature/relay/onion_queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/relay/onion_queue.c b/src/feature/relay/onion_queue.c index 85ec0dc74a..c09f4d5b9b 100644 --- a/src/feature/relay/onion_queue.c +++ b/src/feature/relay/onion_queue.c @@ -164,6 +164,7 @@ onion_pending_add(or_circuit_t *circ, create_cell_t *onionskin) #define WARN_TOO_MANY_CIRC_CREATIONS_INTERVAL (60) static ratelim_t last_warned = RATELIM_INIT(WARN_TOO_MANY_CIRC_CREATIONS_INTERVAL); + rep_hist_note_circuit_handshake_dropped(onionskin->handshake_type); if (onionskin->handshake_type == ONION_HANDSHAKE_TYPE_NTOR) { char *m; /* Note this ntor onionskin drop as an overload */ |