Skip to content

Commit c1c6059

Browse files
committed
Don't report search params
1 parent 6ad9d3a commit c1c6059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function getRequestData(request, response, startTime, endTime) {
2121
function formatRequestData(data, env) {
2222
const url = new URL(data.url);
2323
// We're setting field value to 1 to count the number of requests
24-
return `${env.INFLUX_METRIC},status_code=${data.status},url=${data.url},hostname=${url.hostname},pathname=${url.pathname},method=${data.method},cf_cache=${data.cfCache},api_key=${data.apiKey} value=1 ${data.timestamp}`
24+
return `${env.INFLUX_METRIC},status_code=${data.status},hostname=${url.hostname},pathname="${url.pathname}",method=${data.method},cf_cache=${data.cfCache},api_key=${data.apiKey} value=1 ${data.timestamp}`
2525
}
2626

2727
async function reportMetric(request, response, startTime, endTime, env) {

0 commit comments

Comments
 (0)