From 4b0d8a5dc920d797b9304e6d1613c6e5e4895fed Mon Sep 17 00:00:00 2001 From: alyssadev Date: Mon, 18 Sep 2023 15:07:08 +1000 Subject: [PATCH] added metrics for country,asn,timezone --- src/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 94ee443..bb42526 100644 --- a/src/index.js +++ b/src/index.js @@ -24,11 +24,14 @@ function getHost(request) { function create_response(method, body, metadata) { METRICS.writeDataPoint({ - blobs: [ - method - ], indexes: [ metadata.status + ], + blobs: [ + method, + request.cf.country, + request.cf.asn, + request.cf.timezone ] }) return new Response(body, metadata)