diff options
author | David Goulet <dgoulet@torproject.org> | 2020-10-20 14:47:05 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-10-27 10:43:42 -0400 |
commit | 2fe0322fe4550e59cb8757fbff6984286bf8e121 (patch) | |
tree | aba4c9b3857465aa1a6d5adb52513a567ffe6d5a /src/feature/hs/hs_metrics_entry.h | |
parent | 695957511b95d5b6cbe4a13d30b591aed572c9e5 (diff) | |
download | tor-2fe0322fe4550e59cb8757fbff6984286bf8e121.tar.gz tor-2fe0322fe4550e59cb8757fbff6984286bf8e121.zip |
hs: Collect service traffic metrics
Related to #40063
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_metrics_entry.h')
-rw-r--r-- | src/feature/hs/hs_metrics_entry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/hs/hs_metrics_entry.h b/src/feature/hs/hs_metrics_entry.h index 96dce36ffa..e4b999fc46 100644 --- a/src/feature/hs/hs_metrics_entry.h +++ b/src/feature/hs/hs_metrics_entry.h @@ -17,6 +17,10 @@ typedef enum { /** Number of introduction requests. */ HS_METRICS_NUM_INTRODUCTIONS = 0, + /** Number of bytes written from onion service to application. */ + HS_METRICS_APP_WRITE_BYTES = 1, + /** Number of bytes read from application to onion service. */ + HS_METRICS_APP_READ_BYTES = 2, } hs_metrics_key_t; /** The metadata of an HS metrics. */ |