added metrics for country,asn,timezone

This commit is contained in:
alyssadev 2023-09-18 15:07:08 +10:00
parent 7b793ca81d
commit 4b0d8a5dc9

View file

@ -24,11 +24,14 @@ function getHost(request) {
function create_response(method, body, metadata) { function create_response(method, body, metadata) {
METRICS.writeDataPoint({ METRICS.writeDataPoint({
blobs: [
method
],
indexes: [ indexes: [
metadata.status metadata.status
],
blobs: [
method,
request.cf.country,
request.cf.asn,
request.cf.timezone
] ]
}) })
return new Response(body, metadata) return new Response(body, metadata)