Skip to content

Commit

Permalink
Don't report search params
Browse files Browse the repository at this point in the history
  • Loading branch information
pyropy committed Dec 10, 2024
1 parent 6ad9d3a commit c1c6059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getRequestData(request, response, startTime, endTime) {
function formatRequestData(data, env) {
const url = new URL(data.url);
// We're setting field value to 1 to count the number of requests
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}`
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}`
}

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

0 comments on commit c1c6059

Please sign in to comment.