Tor 0.4.9.1-alpha-dev
Macros | Variables
hs_metrics_entry.c File Reference

Defines the metrics entry that are collected by an onion service. More...

#include <stddef.h>
#include "orconfig.h"
#include "lib/cc/compat_compiler.h"
#include "lib/log/log.h"
#include "lib/log/util_bug.h"
#include "feature/hs/hs_metrics_entry.h"

Go to the source code of this file.

Variables

static const int64_t hs_metrics_circ_build_time_buckets []
 
const hs_metrics_entry_t base_metrics []
 
const size_t base_metrics_size = ARRAY_LENGTH(base_metrics)
 
const char * hs_metrics_intro_req_error_reasons []
 
const size_t hs_metrics_intro_req_error_reasons_size
 
const char * hs_metrics_rend_error_reasons []
 
const size_t hs_metrics_rend_error_reasons_size
 

Detailed Description

Defines the metrics entry that are collected by an onion service.

Definition in file hs_metrics_entry.c.

Macro Definition Documentation

◆ HS_METRICS_ENTRY_PRIVATE

#define HS_METRICS_ENTRY_PRIVATE

Definition at line 9 of file hs_metrics_entry.c.

Variable Documentation

◆ base_metrics

const hs_metrics_entry_t base_metrics[]

The base metrics that is a static array of metrics that are added to every single new stores.

The key member MUST be also the index of the entry in the array.

Definition at line 46 of file hs_metrics_entry.c.

Referenced by hs_metrics_update_by_service(), and init_store().

◆ base_metrics_size

const size_t base_metrics_size = ARRAY_LENGTH(base_metrics)

Size of base_metrics array that is number of entries.

Definition at line 130 of file hs_metrics_entry.c.

Referenced by init_store().

◆ hs_metrics_circ_build_time_buckets

const int64_t hs_metrics_circ_build_time_buckets[]
static
Initial value:
=
{
1000,
5000,
10000,
30000,
60000
}

Definition at line 22 of file hs_metrics_entry.c.

◆ hs_metrics_intro_req_error_reasons

const char* hs_metrics_intro_req_error_reasons[]
Initial value:
=
{
HS_METRICS_ERR_INTRO_REQ_BAD_AUTH_KEY,
HS_METRICS_ERR_INTRO_REQ_INTRODUCE2,
HS_METRICS_ERR_INTRO_REQ_SUBCREDENTIAL,
HS_METRICS_ERR_INTRO_REQ_INTRODUCE2_REPLAY,
}

Possible values for the reason label of the hs_intro_rejected_intro_req_count metric.

Definition at line 134 of file hs_metrics_entry.c.

◆ hs_metrics_intro_req_error_reasons_size

const size_t hs_metrics_intro_req_error_reasons_size
Initial value:
=
#define ARRAY_LENGTH(x)
const char * hs_metrics_intro_req_error_reasons[]

The number of entries in the hs_metrics_intro_req_error_reasons array.

Definition at line 143 of file hs_metrics_entry.c.

◆ hs_metrics_rend_error_reasons

const char* hs_metrics_rend_error_reasons[]
Initial value:
=
{
HS_METRICS_ERR_RDV_RP_CONN_FAILURE,
HS_METRICS_ERR_RDV_PATH,
HS_METRICS_ERR_RDV_RENDEZVOUS1,
HS_METRICS_ERR_RDV_E2E,
HS_METRICS_ERR_RDV_RETRY,
}

Possible values for the reason label of the hs_rdv_error_count metric.

Definition at line 147 of file hs_metrics_entry.c.

◆ hs_metrics_rend_error_reasons_size

const size_t hs_metrics_rend_error_reasons_size
Initial value:
=
const char * hs_metrics_rend_error_reasons[]

The number of entries in the hs_metrics_rend_error_reasons array.

Definition at line 157 of file hs_metrics_entry.c.