added metrics for country,asn,timezone
This commit is contained in:
parent
7b793ca81d
commit
4b0d8a5dc9
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue