diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-12-07 21:16:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-12-07 21:16:38 +0100 |
commit | 71933dd2e9b5b66dbc72cdde9ea7b498a11db197 (patch) | |
tree | 5cb2c5f9931df442ca4ba91da33a0457476039b7 /src/exchange/taler-exchange-httpd_db.h | |
parent | 8be9de667525a307c35e12ecacc0c3a647ccdd9b (diff) |
add basic metrics collection logic
Diffstat (limited to 'src/exchange/taler-exchange-httpd_db.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_db.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exchange/taler-exchange-httpd_db.h b/src/exchange/taler-exchange-httpd_db.h index c115981d..83302235 100644 --- a/src/exchange/taler-exchange-httpd_db.h +++ b/src/exchange/taler-exchange-httpd_db.h @@ -23,6 +23,7 @@ #include <microhttpd.h> #include "taler_exchangedb_plugin.h" +#include "taler-exchange-httpd_metrics.h" #include <gnunet/gnunet_mhd_compat.h> @@ -69,6 +70,7 @@ typedef enum GNUNET_DB_QueryStatus * * @param connection MHD connection to run @a cb for, can be NULL * @param name name of the transaction (for debugging) + * @param mt type of the requests, for metric generation * @param[out] mhd_ret set to MHD response code, if transaction failed (returned #GNUNET_SYSERR); * NULL if we are not running with a @a connection and thus * must not queue MHD replies @@ -79,6 +81,7 @@ typedef enum GNUNET_DB_QueryStatus enum GNUNET_GenericReturnValue TEH_DB_run_transaction (struct MHD_Connection *connection, const char *name, + enum TEH_MetricType mt, MHD_RESULT *mhd_ret, TEH_DB_TransactionCallback cb, void *cb_cls); |